Kizspy.me
write statements to calculate expression value:
S =
12+22+32 + 42 + ... + n²
Notes:
-Do not edit given statements in the main function
- You can create new functions if you see it is necessary.
-The output result is formatted in two decimal places
Sample input and output:
Input: n=5
3 of 4
Paper No: 1
After processing: result = 7.42
Output for marking:
OUTPUT:
7.42
Zoom
Question 3:
(3 marks)
+ 100%
Input: n = 10
After processing: result = 19.62
Output for marking:
OUTPUT:
19.62
Close