Advertisement
scane

Untitled

Oct 23rd, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. private static long simpler(short n) {
  2. long result = 0L;
  3. while (n > 0) {
  4. result = result + (10L ^ (n % 10));
  5.  
  6. n /= 10;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement