Technology has advanced to the point where programming has become an essential part of our lives. We use software and applications for communication, entertainment, education, and work, and these are all built on programming languages.

Program to find greatest number among any three different numbers inputted by User.




Explanation:Here three variables are declared a,b and c. The numbers in a,b and c are checked considering a is the greatest it is compared with b and c. If is greater in both condition, it will be greatest and if not, surely b or c will be greatest and are compared using else if. If b is greater than c then b will be greatest number and if it is also not then c is the greatest number as neither a nor b is greatest.

Output


Exercise :
Make a program to state the smallest number among any three different inputted numbers.
Share:

No comments:

Post a Comment

If you have any doubt, let me know...

Translate

Wikipedia

Search results