how to find greatet of 10 numbers without using array?
Answer Posted / c.p.senthil
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 ? | 9 Yes | 2 No |
Post New Answer View All Answers
explain what is a newline escape sequence?
Array is an lvalue or not?
Write a program to find the biggest number of three numbers in c?
what is uses of .net
Where are some collections of useful code fragments and examples?
What is modeling?
What would be an example of a structure analogous to structure c?
What does 1f stand for?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
How to Throw some light on the splay trees?
What is a class c rental property?
How can you access memory located at a certain address?
What are preprocessor directives in c?
Dont ansi function prototypes render lint obsolete?
Is this program statement valid? INT = 10.50;