how to find greatet of 10 numbers without using array?
Answer Posted / c.p.senthil
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 |
Post New Answer View All Answers
What is the difference between memcpy and memmove?
what is stack , heap ,code segment,and data segment
What is c programing language?
Which programming language is best for getting job 2020?
Is c high or low level?
Write a program to generate random numbers in c?
What is an identifier?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Explain what’s a signal? Explain what do I use signals for?
What is floating point constants?
Calculate 1*2*3*____*n using recursive function??
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Explain how many levels deep can include files be nested?
What are the functions to open and close file in c language?
What are file streams?