PRF192_-_PE02_-_FA_2024_3198.webp
ThuyHoa2000

PRF192_-_PE02_-_FA_2024_3198.webp

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
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE02_-_FA_2024_3198.webp
File size
145.5 KB
Dimensions
1920px x 990px

Share this media

Back
Bên trên Bottom