0

Program to find largest of ten numbers using if, if-elseand nested if structure.?

I need a program using above 3 loops please send me solution as soon as possible

30th Nov 2016, 2:41 AM
shreyas
shreyas - avatar
1 Odpowiedź
0
it's better to use a loop like this <code> int arr = {0,1,2,3,4,5,7,6,9,8}; int max(0); //note the initialization to 0 here for(int x(0); x<sizeof(arr)/sizeof(*arr) ;++x) //loop while x is less than the arr size { if(arr[x]>max) max = arr[x] } </code>
30th Nov 2016, 8:36 AM
mekacher anis
mekacher anis - avatar