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
Make a program to state the smallest number among any three different inputted numbers.
No comments:
Post a Comment
If you have any doubt, let me know...