Skip to content

Commit

Permalink
resolve issue #72 (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
vineet8588 authored and AkshayCHD committed Oct 23, 2018
1 parent 491f8d8 commit 1a4f5b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions programs/Python/perfect_number.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
n=int(input("Enter a no. -"))
k=0
for i in range(1,n):
if (n%i==0):
k=k+i
if(k==n):
print("This is a perfect number.")
else:
print("Not a perfect number")

0 comments on commit 1a4f5b2

Please sign in to comment.