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.")

22nd Jun 2024, 1:50 PM
Tanvee
Tanvee - avatar
2 odpowiedzi
+ 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
22nd Jun 2024, 9:07 PM
Ausgrindtube
Ausgrindtube - avatar
0
Tanvee It's working. What else you want it to do
22nd Jun 2024, 2:48 PM
Ayush Singh
Ayush Singh - avatar