Output: Adding using method: Output:
Output: Even or Not using method: Output:
Perfect Number: The sum of factors except itself is equals to the same number is called Perfect Number for example 6 is perfect number factors of 6 : 1, 2, 3 and 6 Sum is …