Week 2: Wednesday ----------------- Q1. (50) Input a positive integer and check if it is perfect. A number is perfect if it is equal to the sum of its proper divisors (including 1 but excluding itself). Example: 6 is a perfect number since 1 + 2 + 3 = 6. Q2. (50) Input a positive integer (assume numbers less than 10000). Reverse the number and check if it is a palindrome. A palindrome is a number that can be read the same way in either direction and is still the same. Example: If 1782 is the input, the reverse is 2871, and it is not a palindrome. If 1780 is the input, the reverse is 871, and it is not a palindrome. If 1771 is the input, the reverse is 1771, and it is a palindrome.