how to find greatet of 10 numbers without using array?
Answer Posted / aman
int main()
{
int i, num;
int greatest=0;
for(i=0; i<10; i++)
{
scanf("%d", &num);
if(num > greatest)
greatest = num;
}
printf("greatest = %d", greatest);
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
Which header file is used for clrscr?
Is c programming hard?
Differentiate between new and malloc(), delete and free() ?
What is #include cctype?
what is the structure pointer?
largest Of three Number using without if condition?
Explain the use of fflush() function?
Explain how do you generate random numbers in c?
Define recursion in c.
What is the use of getchar functions?
What is 02d in c?
Explain the priority queues?
What are runtime error?
What is a good way to implement complex numbers in c?