☑Kizspy.me
Notes:
V=Sbottom n.
π use the M_PI in the cmath library
Do not edit given statements in the main function.
You can create new function(s) if you see it is necessary.
Sample input and output:
Input: r=1, h=1
Input: r=2, h=5
After processing: 62.83
After processing: 3.14
Output for marking:
OUTPUT:
Output for marking:
OUTPUT:
62.83
Question 2:
3.14
(3 marks)
The given file Q2.cpp already contains statements to input the integer variable named n (n>=0). You
should write statements to calculate expression value:
1 1
S=1+++.... +
2 5
1
n*n+1
Notes:
Zoom
Do not die whian statements in the main formation
+ 100%
Activate Windows
Go to Settings to activate Windows.
Close