PRF193_PE_SU25_521364_3993.webp
H

PRF193_PE_SU25_521364_3993.webp

☑ Kizspy. me The given file Q1.cpp contains statements to enter the radius r and height h of the cylinder. You should
write statements to print the volume of the cylinder.
Hint:
Notes:
Sbottom=πr².
V = Sbottom h.
π 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:
62.83
Output for marking:
OUTPUT:
3.14
Question 2:
(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:
Zoom
+ 100%
1
1
+
Activate Windows
Go to Settings to activate Windows.
Close
Chưa có bình luận nào.

Thông tin

Category
PRF193
Thêm bởi
hoangphuc76
Ngày thêm
Lượt xem
1,127
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom