Or, you could input the number and p it as an argument to a static encrypt method. It should be abstract, so ping an integer to encrypt is better than ping each digit. Then to access each digit you could use num%10 for ones digit, (num%100 - num%10) for tens digit, etc.
No comments:
Post a Comment