Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Help guys, python language.
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.
3 Respostas
+ 6
Lyka Alessandra Magbuhos ,
before we can help you, you should show us your attempt first. if you have not done a try by yourself upto now, please do so. Put your code in playground and link it here.
thanks!
+ 4
You can approach the task like this:
* get input
* convert input to numeric data type
* calculate what is 20% of the input
* output result
+ 2
a=int(input())
b= a*20/100
print(b)