We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3d8f4a commit 71ae05dCopy full SHA for 71ae05d
1 file changed
armstrong.py
@@ -9,7 +9,7 @@
9
sum += digit ** 3
10
temp //= 10
11
12
-if num == sum:
13
- print(num,"is an Armstrong number")
14
-else:
+if num != sum:
15
print(num,"is not an Armstrong number")
+else:
+ print(num,"is an Armstrong number")
0 commit comments