diff --git a/Armstrong Number.py b/Armstrong Number.py new file mode 100644 index 0000000..54c0cbe --- /dev/null +++ b/Armstrong Number.py @@ -0,0 +1,11 @@ +num = int(input()) +temp = num +count = 0 +while(num>0): + res = num % 10 + count = count + res**3 + num = num//10 +if(count == temp): + print("Armstrong Number") +else: + print("Not a Armstrong Number")