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
Is fortran still used today?
What is call by reference in functions?
Explain how can you check to see whether a symbol is defined?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What is difference between scanf and gets?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
Explain how do you print only part of a string?
What are the benefits of c language?
When should a type cast not be used?
Why we use break in c?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What is the difference between call by value and call by reference in c?
Why is C language being considered a middle level language?
What are pointers? Why are they used?