diff --git a/Math/Armstrong.py b/Math/Armstrong.py new file mode 100644 index 0000000..45f5aa3 --- /dev/null +++ b/Math/Armstrong.py @@ -0,0 +1,9 @@ +x = input() +sum = 0 +for i in x: + z = int(i) + sum += z**len(x) +if sum == int(x): + print('Armstrong Number') +else: + print('Not an Armstrong Number')