folders, mes,(formaspecimeexam. If you change it, the grading software can not find the execute file (.exe) or the output results to score, thus the exam result will be 0
• Do not edit given statements in the main function. If you change, the grading software may not be able to score and the exam result will be 0.
(2 marks)
2 of 3
Paper No: 1
The given Q1.c file already contains statements to enter data for the variable n. You write the statements to check whether n is a perfect number or not (a perfect number is a number that has the sum of its divisors equal to itself). If true then return 1, otherwise return 0.
Notes:
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
-Input: n = 5
Output for marking:
OUTPUT:
0
-Input: n = 6
Output for marking:
OUTPLIT
+ 100%
Zoom
Close