PRF192_-_PE02_-_SU_2024_2178.webp
V

PRF192_-_PE02_-_SU_2024_2178.webp

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
Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
VanDat2002
Ngày thêm
Lượt xem
2,091
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_PE02_-_SU_2024_2178.webp
File size
247.6 KB
Dimensions
2560px x 1269px

Share this media

Back
Bên trên Bottom