Pro for To Find the Largest of two numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Pro for To Find the Largest of two numbers

Using If... Else...

11th Aug 2016, 12:52 PM
chetan wagadare
chetan wagadare - avatar
2 Answers
0
a=int (input ("Enter a number")) b=int (input ("Enter a second number")) if a>b: print ("A is greater than B, a) else: print ("B is greater than A, b)
11th Aug 2016, 3:00 PM
Menschens Kinners
Menschens Kinners - avatar
0
The above given program is right but the only mistake in both if and else statement is u forgot to put double quotation" in the another end of print statement
12th Aug 2016, 6:59 PM
Gulshan Kumar
Gulshan Kumar - avatar