C programming

Saturday, January 17, 2009

#include #include void main () { int a[10],m,i,x; clrscr(); printf("Enter the array size:"); scanf("%d",&m); printf("Enter the element of the array number :\n"); for(i=0;i { printf("Element[%d]=",i+1); scanf("%d",&a[i]); } printf("Enter the searching number :"); scanf("%d",&x); for(i=0;i { if(a[i]==x) break; } if(i printf("FOUND"); else printf("NOT FOUND"); getch(); }

0 comments:

Visitors

PlugIn.ws - Free Hit Counter, Web Site Statistics, Traffic Analysis

  © Blogger template Leaving by Ourblogtemplates.com 2008

Back to TOP