Computer Science, asked by irene41, 3 months ago

1.Write a Python program to check whether a number is perfect number or not.

2.Write a Python program to find the largest of n numbers entered through the keyboard.​

Answers

Answered by Anonymous
2

\huge\mathtt{{\colorbox{indigo} {*ANSWER*}}}

The program output is also shown below. n = int(input("Enter any number: ")) sum1 = 0 for i in range(1, n): if(n % i == 0): sum1 = sum1 + i if (sum1 == n): print("The number is a Perfect number! ") else: print("The number is not a Perfect number! ")

Similar questions