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
What is a sequential access file?
What is the difference between c and python?
Why malloc is faster than calloc?
What is difference between class and structure?
What is a structure member in c?
What is getch() function?
What is the difference between exit() and _exit() function in c?
What is the use of printf() and scanf() functions?
What is difference between function overloading and operator overloading?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
How many keywords (reserve words) are in c?
What does the format %10.2 mean when included in a printf statement?
What is the difference between malloc() and calloc()?
What is a char in c?
How can I read and write comma-delimited text?