PRF192_-_PE01_-_SP_2025_3482.webp
G

PRF192_-_PE01_-_SP_2025_3482.webp

Kizspy.me
Question 2:
(3 marks)
The given file Q2.c already contains statements to input data for variable n. You should write
statements so that calculate S by n, S is defined as follows:
1
1
S=1+- +-+
2 3
+
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=9
Output for marking:
OUTPUT:
2.83
3 of 4
Paper No: 1
Zoom
Question 3:
(2 marks)
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom