All Data For Free
Pages
Home
Watch Full WWE Episodes of Raw and Smackdown
Contact Us
Copyright Policy
Sunday, 27 November 2011
C++ Program For Search A Number In Array
#include<iostream.h>
#include<conio.h>
void main()
{
int a[5],i,num;
cout<<"enter 5 numbers";
for(i=0;i<5;i++)
cin>>a[i];
cout<<"enter number";
for(i=0;i<5;i++)
if(a[i]==num)
cout<<"number found"<<i;
else
cout<<"number not found";
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment