how to find greatet of 10 numbers without using array?
Answer Posted / afreen chitragar
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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
Describe the modifier in c?
What is the difference between single charater constant and string constant?
What is time null in c?
What do you mean by recursion in c?
What 'lex' does?
What is the size of structure pointer in c?
What is auto keyword in c?
What is the use of volatile?
Is there a built-in function in C that can be used for sorting data?
What does the c in ctime mean?
Explain what is the difference between a free-standing and a hosted environment?
Can 'this' pointer by used in the constructor?
What are qualifiers and modifiers c?
What is the meaning of typedef struct in c?
What is c value paradox explain?