Here is my code:
And this is the output. Why does it show "0.0" as value of discount2?
discount2
discount2 is float. So zero is 0.0 Change it into integer.