0

Please tell what's wrong with this code for *Hovercraft* challenge.

a=2000000 c=10 d=1000000 e=3000000 b=int(input('enter your sales')) if a*c+d>e*b: print('Loss') elif a*c+d<e*b: print("Profit") else: print('Broke even')

26th Oct 2020, 6:38 AM
coder_20
8 odpowiedzi
+ 6
Its working fine for me.
26th Oct 2020, 7:38 AM
Pranav
Pranav - avatar
+ 6
👍👍
26th Oct 2020, 7:40 AM
Pranav
Pranav - avatar
+ 5
Remove 'enter your sales' as it shows in the output too. 'Broke even' ^ Broke Even
26th Oct 2020, 6:55 AM
Pranav
Pranav - avatar
+ 4
b = int(input())
26th Oct 2020, 7:31 AM
Pranav
Pranav - avatar
+ 2
Thanks Now I saw it was also expecting even to start with a capital letter. Rest all was fine.
26th Oct 2020, 7:39 AM
coder_20
0
Then how do I accept input from user?
26th Oct 2020, 7:30 AM
coder_20
0
It's not working here, but on PC it's fine
26th Oct 2020, 7:37 AM
coder_20