Python program to find largest and equal of two numbers

0
58
num1=int(input("Please enter first number: "))
num2=int(input("Please enter second number: "))
if(num1>num2): #check for num1 is largest and gives true when num1 is largest otherwise false 
   print("largest= ",num1);
if(num2>num1): #Check for num2 is largest and gives true when num2 is largest otherwise false 
   print("largest= ",num2);
if(num1==num2): #check for equality of num1 and num2 and gives true when equal otherwise false
    print("both",num1, "and" ,num2, "are equal");
 
    Output 1:
           Please enter first number: 20
           Please enter second number: 12
           largest=  20
    Output 2:
           Please enter first number: 12
           Please enter second number: 25
           largest=  25
    Output 3:
           Please enter first number: 20
           Please enter second number: 20
           both 20 and 20 are equal

इन्हें भी देखें।

Python Programs के लिये यहाँ click करें।

 

 

Python program to find largest and equal of two numbers program to find largest and equal of two numbers in python write a program to find largest and equal of two numbers write a program to find largest and equal of two numbers in python Python program to find largest of two numbers program to find largest of two numbers in python program to find equal of two numbers in python Python program to find equal of two numbers write a program to find equal of two numbers

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here