Output for marking:
OUTPUT:
-15.75
Question 2:
(3 marks)
The given file Q2.c already contains statements to input data for integer variable n (n>0). You should write
statements so that calculate S (S formatted two decimal places) by n, S is defined as follows:1S(n) =+2+√233+√33n
Notes:
- Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
- The output value is formatted in two decimal places
3 of 4
Paper No: 1
Zoom
+ 100%
Close