prev


for loop

119. Biggest 10 nos - integer array(03.08.2010)

/*
Program# 119
date : 14-01-2009
Biggest 10 nos - integer array
*/

#include <stdio.h>
main(){
int i,big,a[10];
big=0;
for(i=0;i<10;i++)
scanf("%d",&a[i]);
for(i=0;i<10;i++)
big=(a[i]>big)?a[i]:big;
printf("\n %d",big);
}



next
blog comments powered by Disqus