What is wrong?? x =int(input("please put number")) y =int(input("please put the second one")) if x+y>0: print("positive number" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is wrong?? x =int(input("please put number")) y =int(input("please put the second one")) if x+y>0: print("positive number"

21st Jan 2018, 8:17 AM
Mahmoud Essam
Mahmoud Essam - avatar
2 Answers
+ 1
x =int(input("please put number")) y =int(input("please put the second one")) if x+y>0: print("positive number") elif x+y<0: print("negative number")
21st Jan 2018, 8:17 AM
Mahmoud Essam
Mahmoud Essam - avatar