0
How we do a code for percent??
Who can help me out 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
2 RĂ©ponses
0
if you mean what is the percent of x compared to y then its x/y*100
0
clear what you mean now
20% of a number is just (number * 20 / 100)