Working With Floats and Integers

前端 未结 7 741
旧时难觅i
旧时难觅i 2020-12-21 08:40

I\'ve created an ATM like program which holds the money in a person\'s account. When the person takes out a withdrawal, it subtracts the withdrawal from the account along wi

相关标签:
7条回答
  • 2020-12-21 09:29

    you print account as if it was a floating point number (%2f) even though it is a integer, you should use the %d format specifier instead

    0 讨论(0)
提交回复
热议问题