Search:

Type: Posts; User: theonlydvr

Search: Search took 0.11 seconds.

  1. Re: I need help to write encrypt and decrypt 4 digit numbers.

    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...
  2. Re: I need help to write encrypt and decrypt 4 digit numbers.

    Change the do {} while loop line to this in both programs.



    while(num/10000 != 0 || inputString.length() != 4);
Results 1 to 2 of 2