+ 1

Could anyone help me out for this code ? I am unable to solve it . I have tried a lot but couldn't get it..

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

25th Jun 2021, 6:57 AM
Falguni Raja
Falguni Raja - avatar
5 odpowiedzi
+ 9
You need to write a code that will work for any input, not just that one test case. You can declare an input variable to take the input from the compiler , then manipulate what you get into what you need to output. x = int(input())
25th Jun 2021, 7:22 AM
Simba
Simba - avatar
+ 2
Ok , I will try .. Thankyou
25th Jun 2021, 7:54 AM
Falguni Raja
Falguni Raja - avatar
+ 2
Yes , your solution worked ... Thanks for helping
25th Jun 2021, 7:56 AM
Falguni Raja
Falguni Raja - avatar
0
#20/100*50 print(125*20/100)
25th Jun 2021, 7:18 AM
Falguni Raja
Falguni Raja - avatar
- 2
I don't understand the text, arrange what words will be put in the box that will be written and what kind of support is there
25th Jun 2021, 8:23 AM
Steven Celvino
Steven Celvino - avatar