Skip to content
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
8 changes: 3 additions & 5 deletions armstrong.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Python program to check if the number is an Armstrong number or not
# Python program to check if the number is an Armstrong number or not which takes input from the user
num = int(input("Enter a number "))

# take input from the user
num = int(input("Enter a number: "))

# initialize sum
# initialize the sum
sum = 0

# find the sum of the cube of each digit
Expand Down