(int N)
| 24 | */ |
| 25 | |
| 26 | public static int length(int N) { |
| 27 | int length = 0; |
| 28 | |
| 29 | while (N != 0) { |
| 30 | N = N / 10; |
| 31 | length++; |
| 32 | } |
| 33 | |
| 34 | return length; |
| 35 | } |
| 36 | |
| 37 | public static boolean isArmstrongNumber(int N, int k) { |
| 38 | long powerSum = 0; |
no outgoing calls