Skip to content

Commit 71ae05d

Browse files
updated
1 parent e3d8f4a commit 71ae05d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

armstrong.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
sum += digit ** 3
1010
temp //= 10
1111

12-
if num == sum:
13-
print(num,"is an Armstrong number")
14-
else:
12+
if num != sum:
1513
print(num,"is not an Armstrong number")
14+
else:
15+
print(num,"is an Armstrong number")

0 commit comments

Comments
 (0)