+ 3
I am having problem in tip calculator program
It's showing different and wrong output but in calculator it's showing correct
11 Respuestas
+ 8
Your 2nd solution is correct. But it's not necessary to add extra things in your solution.
I mean don't add anything inside input()
bill = int(input())
+ 1
bill = int(input(268))
#your code goes here
tip = (bill*20/100)
print (float(tip))
+ 1
Thanks it worked
+ 1
Soham Dengale for the safety/tidy of Q&A, could you mark as best answer the relevant one?
+ 1
Sure
0
bill = int(input(268))
#your code goes here
tip = (bill%20)
print (float(tip))
0
Or
0
Output is 26853.6
0
It should be 53.6
0
Means
0
Thanks to you guys for response