in case you don't notice my solution is wrong lol.
you don't need any loop statement to solve this problem its a straight forward process, i remembered i used the same technique when converting remaining time to words.
from:
statements you can change it toCode:if () else if() else if() else if() else
therefore eliminating the need to use a loopCode:if() if() if() if()
with functions you can abstract the problem to make it more simple, therefore eliminating the need to do nested if statements.



Reply With Quote
