Hi All,
I need help with a question here: I need to encrypt a 4 digit number in the ff way: add 7 and mod by 10 each digit then swap dgt1 with 3, 2 with 4. Then after that I need to decrypt the encrypted number. I need this in pseudocode but c# is welcome too. I know I have to store the user input in an array then manipulate it using a for loop then do the operations on each digit storing the results seperately. I then will have a function that will swap the digits as stated. I'm just not sure of how to apply this logically plz help in that regard oh and I have no clue on how to decrypt the number.
Thanks
Loading

VulpesRank #55 · 29.2K reputationPosted Sep 22, 2011, 10:37 AM EDT
And here it is in C#:
Avuya MxoliRank #7,940 · 231 reputationPosted Sep 22, 2011, 9:34 PM EDT
Mudia David2 reputationPosted Apr 28, 2015, 5:57 AM EDT