how to calculate | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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