how to find greatet of 10 numbers without using array?
Answer Posted / 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 |
Post New Answer View All Answers
Can I initialize unions?
What is volatile variable in c with example?
Is it better to use a macro or a function?
What are the types of assignment statements?
What is the g value paradox?
difference between Low, Middle, High Level languages in c ?
How can you draw circles in C?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
Why array is used in c?
How to explain the final year project as a fresher please answer with sample project
What is spark map function?
Explain how do you print only part of a string?
Is c++ based on c?
How is = symbol different from == symbol in c programming?
What do you mean by c what are the main characteristics of c language?