how to find greatet of 10 numbers without using array?
Answers were Sorted based on User's Feedback
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 |
Answer / 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 |
Answer / guest
using ? And & operator wa can find out the soution
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
Program to find larger of the two numbers without using if-else,while,for,switch
What is pass by value in c?
What are the advantages and disadvantages of c language?
What is the difference between functions getch() and getche()?
Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********
What is ponter?
Which driver is a pure java driver
What are function pointers? Provide an example.
how to find that no is int or float?
Can anyone tell what is stack overflow? what precaution we should take?
In header files whether functions are declared or defined?
How can I prevent another program from modifying part of a file that I am modifying?