//wap to find the biggest number from an array of 10 numbers.
#include<stdio.h>
#include<conio.h>
void main(){
int a[10], i;
clrscr();
printf(“\n \a enter 10 numbers in array : \n”);
for(i=0; i<=10; i++)
{scanf(“%d”,&a[i]);
}
for(i=0; i<=10; i++)
{if (big>a[i])
{big=a[i];}
}
printf(“\n\a biggest %d”, big);
getch();
}
o/p→
enter 10 numbers in array :
1 5 8 7 3 2 15 12 16 8
Biggest 19
Code Capsule
Saturday, November 7, 2009
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment
If you have any proble fee free to ask it here