Python program to find largest of two numbers

0
43
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
    print("largest= ",num1);
  else:     # When if condition is going to be false then else part will be run
    print("largest= ",num2);
 
    Output 1:
             Please enter first number: 12
             Please enter second number: 10
             largest= 12
    Output 2:
             Please enter first number: 20
             Please enter second number: 25
             largest= 25

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

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

 

 

 

Python program to find largest of two numbers program to find largest of two numbers program to find largest of two numbers in python write a python program to find largest of two numbers write a program to find largest of two numbers in python write a program to find largest of two numbers python program to find maximum between two numbers write a program to find maximum between two numbers in python python program to find the largest among two numbers write a program to find the largest among two numbers in python write a python program to find maximum between two numbers python program to find the largest of two numbers python program for largest of two numbers how to find maximum of two numbers in pythonpython program to find biggest of two numbers

LEAVE A REPLY

Please enter your comment!
Please enter your name here