From b88542124516cfd8068cbd1742214226fd01fc40 Mon Sep 17 00:00:00 2001 From: shivam1718 <67551350+shivam1718@users.noreply.github.com> Date: Thu, 1 Oct 2020 16:28:08 +0530 Subject: [PATCH] Update Armstrong.java --- ForLoop/Armstrong.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;