Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Python/armstrong_num.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
num = int(input('enter the nuber'))
s = 0
temp = num
while temp > 0:
c = temp % 10
s += c**3
temp //= 10
if s == num:
print('armstrong number')
else:
print('not an armstrong number')