Monday, May 24, 2010

C program for finding the largest number among the 'n' number of array. can any1 answer for this? pls soon

the program should be simple by using simple functions

C program for finding the largest number among the 'n' number of array. can any1 answer for this? pls soon
a[n]


large=a[0]


for(i=1;i%26lt;n;n++)


{


if(large%26lt;a[i])


{


large=a[i]


}


}


printf("largest no. is %d",large)


getrch()
Reply:but here is some error Report It

Reply:Use an If / else statement.


No comments:

Post a Comment