C Program to find the biggest of the given numbers

C Program to find the biggest of the given numbers

#include

main()

{

int a[30],big=0,n;

register int i;

clrscr();

printf("HOW MANY NUMBERS YOU WANT TO ENTER\n");

scanf("%d",&n);

printf("ENTER %d NUMBERS\n",n);

for (i=0;i

scanf("%d",&a[i]);

for (i=0;i

{

if (big

big=a[i];

}

printf("THE BIGGEST ELEMENT IS %d",big);

getch();

}






No comments:

Post a Comment