Question 2:
Kizspy.me
(3 marks)
The provided file Q2.c includes statements to input an integer n. You should write statements to
calculate the sum of the third powers of all digits of n.
Notes:
-Do not edit given statements in the main function.
3 of 4
Paper No:
- You can create new functions if you see it is necessary.
Sample input and output:
-Input: n = 321
After processing: 33 +23+13=36
Output for marking:
OUTPUT:
36
Zoom
Question 3:
Question 3: (2 marks)
The given film 02 already contains statements to innut data for an integer 1 Darray You
+100%
Close