+ 1
Wrote a code to find out greatest number among 3. Does not work. What went wrong?
a = input("") b = input("") c=input("") if a>b>c: print("A is the greatest number") elif a>c>b: print("a is the greatest number") elif b>c>a: print("b is the greatest number") elif b>a>c: print("b is the greatest number") else :print("c is the greatest number")
1 Odpowiedź
+ 7
Your code is running properly in a regular IDE. The problem is to run this code also in playground. This has a special behaviour in taking inputs. They all has to be given in a single run. Try:
When input window pops up enter:
3 <press return on keyboard>
9 <press return on keyboard>
1 <press submit in input window>