6 of 6
Paper No: 3
mark elliot zuckerberg
mark elliot zuckerberg
OUTPUT:
OUTPUT:MArk Elliot ZUckerberg
MArk Elliot Zuckerberg
Press any key to continue
. Press any key to continue
Question 10:
(1 mark, file to be edited: Q10.c)
Your program allows the user to input an integer 'n'.
Print out: "n is a perfect number" or "n is not a perfect number". A perfect number is a number equal to the sum of its divisor.
Below is an example:
6
OUTPUT:
OUTPUT:
6 is a perfect number
Press any key to continue
n=6
n = 10
10
10 is not a perfect number
Press any key to continue
Zoom
+ 100%
Close