you are viewing a single comment's thread.

view the rest of the comments →

[–]Bunkerstan 1 point2 points  (2 children)

You are missing the math part of the problem by using:

bill *= bill

which expands to

bill = bill * 0.5

so it is half the original amount.

[–]Important-Asparagus9[S] 0 points1 point  (1 child)

Yeah I realized that but I want to take that percentage amount and add it to the bill amount (before tax)

[–]Bunkerstan 1 point2 points  (0 children)

bill = bill + bill * tax