diff --git a/ForLoop/Armstrong.java b/ForLoop/Armstrong.java index 50fea72..6dd2d0c 100644 --- a/ForLoop/Armstrong.java +++ b/ForLoop/Armstrong.java @@ -9,7 +9,7 @@ public static void main(String[] args) { System.out.println("Enter the number you want to check"); int a=sc.nextInt(); temp=a; - for(int i=0; ; i++) { + for(int i=0; i++) { b=a%10; s=s+(b*b*b); a=a/10;