The program to find the greatest of two numbers and the greatest of three numbers is discussed here. Input two or integers from the user and find the greatest number among them.
Input & Output format:
Input consists of 2 integers.
Sample Input and Output :
7
9
5
9 is greater.
Greatest_of_two_numbers(num1, num2):
Greatest_of_three_numbers(num1,num2):
The program to find the greatest of two numbers and the greatest of three numbers is given below :
@@coding::1@@
@@coding::2@@
Recommended Programs