0
Why ot doesnt gives output
num1=int(input("Enter first number:")) num2=int(input("Enter second number:")) num3=int(input("Enter third number:")) print("num1;",num1) print("num2:",num2) print("num3:",num3) if(num1 > num3 and num1 > num2): print("num1 is greatest.") elif(num2 > num1 and num2 > num3): print("num2 is greatest.") else: print("num3 is greatest.")
2 Answers
+ 4
Remember that Sololearn's compiler doesn't accept real-time input.
You'd have to enter your numbers like this:
2
4
1
Then, you'd see your program in action đ
https://www.sololearn.com/discuss/1619912/?ref=app
https://www.sololearn.com/discuss/1156802/?ref=app
https://www.sololearn.com/discuss/863989/?ref=app
0
Tanvee It's working. What else you want it to do