28.26
Question 2:
(3 marks)
The given file Q2.c already contains statements to input an integer variable named n. You should write statements to calculate the following expression value:
S(n)=(1+1/12)* (1 + 1/22) *.........* (1 + 1/ n²)
Notes:
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
- The output value is formatted in two decimal places
Sample input and output:
Input: n = 10 After processing: S(n)=3.34
Output for marking:
OUTPUT:3.34
Question 3:
Zoom
+ 100%
Close