diff --git a/Others/Armstrong.java b/Others/Armstrong.java index 1340c8b9..bfdde2b0 100644 --- a/Others/Armstrong.java +++ b/Others/Armstrong.java @@ -39,15 +39,11 @@ public class Armstrong { sum = sum + (remainder * remainder * remainder); number = number / 10; } - if (sum == temp) { - return true; - } else { - return false; - } + return sum == temp; } private static int inputInt(String string) { System.out.print(string); return Integer.parseInt(scan.nextLine()); } -} \ No newline at end of file +}