Your code looks good and it is the fastest way of completing the problem. Modulo gives you the remainder of the division operation as you probably know. Technically it is impossible to reverse modulo...
Type: Posts; User: theonlydvr
Your code looks good and it is the fastest way of completing the problem. Modulo gives you the remainder of the division operation as you probably know. Technically it is impossible to reverse modulo...
Change the do {} while loop line to this in both programs.
while(num/10000 != 0 || inputString.length() != 4);