😁😁😁Monday Challenge 😁😁😁. Write a program that prints out perfect numbers, within user's input and checks if user input is.
A perfect number is a number for which the sum of its proper divisors is exactly equal to the number.
6 is a perfect number, because it's factors (1,2,3) add up to 6; 1+2+3=6
So, the program will behave like this
For example :
user_input = 20
Output : 20 is not a perfect number. Perfect numbers within the range of 20 are...........
All languages are welcome. But as always, hope Python will dominate 😋😉.
Don't forget to upvote the question, so others can see it and try it out
for i in range(1,num_2):
number=int(input("Enter your number"))
print (number,"is a perfect number")
print (number,"isn't a perfecct number")
print ("Perfect numbers within the range of",number,"are:")
for k in range (1,number):