QUOTE(maga @ 3 Aug, 2007 - 12:19 AM)

how to find biggest number among given n numbers in C programming
CODE
a[10]={3,4,5,1,8,9,1,6,7,8}
int temp,i;
temp=a[0]
for(i=1;i<10;i++)
{
if(a[i]>temp)
temp =a[i];
}
//temp is the largest number
similar thing for smallest number