Program will then find the largest of three numbers using nested if-else statements.
User is prompted to enter three numbers.
Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed.
If user enters 21, 33, and 5, the output should be as follows:
You entered: 21, 33 and 5. The largest number is 33.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What is the significance of an algorithm to C programming?

0 Answers  


main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }

3 Answers  


What is meant by type casting?

0 Answers  


What is typedef?

1 Answers  


how to implement stack work as a queue?

2 Answers  


write a function which accept two numbers from main() and interchange them using pointers?

3 Answers  


What is the output of the below program and how it is? void main() { static int var=5; printf("%d",var--); if(var) main(); }

8 Answers   MindFire, TCS, Tech Mahindra,


Where we use clrscr in c?

0 Answers  


Explain what is the difference between functions getch() and getche()?

0 Answers  


What are advantages and disadvantages of recursive calling ?

12 Answers   College School Exams Tests, Evolving Systems, HP, Jyoti Ltd, Sage, Wipro,


How can you find out how much memory is available?

0 Answers  


Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”

5 Answers   Mind Tree,


Categories