prev


While-Loop

62. Biggest of ten numbers (04.03.2010)

/*
Program# 62
date : 28-12-2008
Biggest of 10 nos
*/

#include <stdio.h>
main(){
int n,no,big;
n=1;
big=0; //Will fail if all inputs are less than zero
while(n<10){
scanf("%d",&no);
if(no>big)
big=no;
n=n+1;
}
printf("\n Big =%d",big);
}



next
blog comments powered by Disqus