Enigmatics-Society / Algorithms-Hacktoberfest2k21

3 stars 12 forks source link

Create perfectnumbers.c #25

Closed uthsavj closed 2 years ago

uthsavj commented 2 years ago

Perfect Numbers are integers that are equal to the sum of all its divisors except that number itself. Now, given an integer N ,write a program to print true if it is a perfect number or false if it is not a perfect number. Input format The first line contains the number of test cases T. Each test case contains an integer N is provided. Output format For each test case on a new line, print true or false depending on N. Example Input 2

28

96

Output true false