The total tip is 15.72
The cost of dinner with the discount is 66.85 (rounded to the nearest cent)
66.85 + 15.72 = 82.57
Answer:
1
Step-by-step explanation:
extending answer to be able to send
Franck's answer is better (using ~), but I just wanted to point out that the conditional in yours is slightly redundant. It's easy to forget that, since you already have a boolean value, you don't need to perform a comparison in your conditional. So you could have just done this...
<span>if x
x = false;
else
x = true;
<span>end</span></span>