- 2

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 ti

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

7th May 2022, 2:56 PM
Chabolu Dharaneesvar
3 Answers
+ 2
Chabolu Dharaneesvar How to get 20% of x amount? It's a general math.
7th May 2022, 4:31 PM
AÍąJ
AÍąJ - avatar
+ 1
Where is Your attempt? edit: hint: 50*20.0/100=10.0
7th May 2022, 2:59 PM
Jayakrishna 🇼🇳