We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9629aef commit 7a68c54Copy full SHA for 7a68c54
perfect_num.py
@@ -0,0 +1,11 @@
1
+#Perfect Number or Not Check
2
+
3
+n = int(input("Enter the number : "))
4
+sum=0
5
+for i in range(1,n):
6
+ if n%i==0:
7
+ sum+=i
8
+if sum==n:
9
+ print("Perfect !")
10
+else:
11
+ print("Nah !")
0 commit comments