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 best organizational structure?
What are the disadvantages of c language?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
How can you determine the size of an allocated portion of memory?
Why main function is special give two reasons?
How #define works?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Place the #include statement must be written in the program?
What is the best style for code layout in c?
What is calloc in c?
Explain function?
What are identifiers in c?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What are the types of arrays in c?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none