#include<stdio.h>
main()
{
int i, greater = 0;
int number[]= {1,2,40,4,5};
for (i=0; i<5; i++)
{
if(number[i]>greater)
{
greater = number[i];
}
}
printf("greater number is:%d",greater);
getchar();
}
main()
{
int i, greater = 0;
int number[]= {1,2,40,4,5};
for (i=0; i<5; i++)
{
if(number[i]>greater)
{
greater = number[i];
}
}
printf("greater number is:%d",greater);
getchar();
}
0 comments:
Post a Comment