0

how to calculate

When you go out to eat, you always tip 20% of the bill amount. But who’s got the time to calculate the right tip amount every time? Not you that’s for sure! You’re making a program to calculate tips and save some time. Your program needs to take the bill amount as input and output the tip as a float. Sample Input 50 Sample Output 10.0

17th May 2021, 8:56 AM
Mukund Vitthalrao Sonawane.
Mukund Vitthalrao Sonawane. - avatar
3 Respostas
0
Mukund Sonawane,Nashik,State-Maharashtra422303 Formula for that↑ (bill)*20/100 In python code.... print(int(input())*20/100)
17th May 2021, 9:42 AM
˜”*°‱.˜”*°‱ Mohan 333 ‱°*”˜.‱°*”˜
˜”*°‱.˜”*°‱ Mohan 333 ‱°*”˜.‱°*”˜ - avatar
+ 1
print(float(input())*1.2)
17th May 2021, 10:17 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
didn't run
17th May 2021, 10:54 AM
Mukund Vitthalrao Sonawane.
Mukund Vitthalrao Sonawane. - avatar