Light Mode
Dark Mode
Sorry

Sorry, I'm a complete beginner... even in programming. I understand the exemple and I can figure out that 115 should be the right number to withdraw because 120 - 115 - 0.5 -1% = 3.35 = 3 but I don't understand what I have to do in the code part ? Do I have to test numbers ? create a algorythm which doing it for me ? should i write something like... withdraw < 120, withdraw/5 = integer then do balance - (balance - 5) and if the result is 0

Created: Nov. 9, 2012, 11:33 a.m.
Updated: Sept. 30, 2013, 1:46 p.m.
0
1
User avatar
toto10000