From 334eeafc10464c06b6f53147b64c216a8a18b92d Mon Sep 17 00:00:00 2001 From: Rahul Gupta <64692111+RahulGupta899@users.noreply.github.com> Date: Wed, 22 Sep 2021 18:36:42 +0530 Subject: [PATCH] ArmstrongNumber Refactored and fixed the output message --- Armstrong.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Armstrong.java b/Armstrong.java index b3f9f8e..60992e8 100644 --- a/Armstrong.java +++ b/Armstrong.java @@ -14,8 +14,8 @@ public static void main(String[] args) x=x/10; } if(temp==A) -System.out.println("Armstrong no"); +System.out.println("Armstrong number"); else -System.out.println("not an Armstrong no"); +System.out.println("Not an Armstrong number"); } }