Sep-13-2017, 08:31 PM
(This post was last modified: Sep-13-2017, 08:35 PM by icantcodeforcrap.)
This is my window. I'm using cloud9.
Now it's behaving differently. I don't know what made it change. I also altered my code, but I'm still getting the same final answer.
Now it's behaving differently. I don't know what made it change. I also altered my code, but I'm still getting the same final answer.
tax = .06 # How much is the bill? bill = input("How much is the bill? ") # What percentage of the tip would you like to enter? tippy = input("What percentage of the tip would you like to enter? ") # Tip added print "Tip added is " + str(tippy) # What is the total bill? TotalBill = (bill * tax) + (bill * (tippy / 100)) + bill print "Your total bill is " + str(TotalBill)
Output:How much is the bill? 100
What percentage of the tip would you like to enter? 10
Tip added is 10
Your total bill is 106.0