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
Write a program of advanced Fibonacci series.
Differentiate between a for loop and a while loop? What are it uses?
What is hash table in c?
What is typedef example?
Why pointers are used?
How arrays can be passed to a user defined function
What is function what are the types of function?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
What is the difference between text and binary modes?
What is a header file?
How pointers are declared?
What is the purpose of void in c?
Can you write the algorithm for Queue?
How can I access an I o board directly?
Write a program to swap two numbers without using third variable in c?