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 |
wtite a program that will multiply two integers in recursion function
How do we make a global variable accessible across files? Explain the extern keyword?
What is the best organizational structure?
How can we allocate array or structure bigger than 64kb?
Explain the bubble sort algorithm.
Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
Explain About fork()?
How can I read data from data files with particular formats?
write a program that will read the temperature in Celsius and convert that into Fahrenheit.
What are c identifiers?
count the numbers between 100 and 300, that star with 2 and ends with 2