0

How do you solve 18 code project? How do you calculate 20% tip and outcome should be float?

I am stuck in number 18 exercise. I did write some codes which gives me the right answer but some how it wont accept it. Question is, Calculate 20% tip of the total amount 125. And result should be float which is 25.0. But how do you write it paytho? An explanation will be very supportive if you knowđŸ‘đŸ€ 

11th Feb 2022, 7:44 PM
Ahrar Khan
2 Answers
+ 2
Please tag the relevant programming language. Re-view the previous lessons. If you need further help, please link your code. An approach to solve the task could be like this: * get input and store it in a variable * covert the input to a numeric data type * calculate 20% of that * output the result
11th Feb 2022, 7:49 PM
Lisa
Lisa - avatar
0
In which language? Share your try that you tried ! because it's also depends on how you trying !!
11th Feb 2022, 7:48 PM
Jayakrishna 🇼🇳