-12

Here is my code: enter image description here

And this is the output. Why does it show "0.0" as value of discount2?

enter image description here

1 Answers1

-1

discount2 is float. So zero is 0.0 Change it into integer.

Younghwa Park
  • 392
  • 2
  • 9