Output for marking:
Output for marking:
Output for marking:
Output for marking:
Kizspy.me
OUTPUT:
OUTPUT:
Spring
Summer
OUTPUT:
Autumn
OUTPUT:
Winter
Question 2:
(3 marks)
The given file Q2.cpp already contains statements to input the integer variable named n. You should
write statements to calculate expression value:
S =
12+22+32 +4² + ... + m²
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
Input: n = 10
Zoom
After procaccina racult-717
+ 100%
After procaccina racult-196
Close