PRF192_-_SP_2024_-_PE06_1886.webp
H

PRF192_-_SP_2024_-_PE06_1886.webp

(3 marks)
ne given file Q2.c already contains statements to input data for an integer variable named n (n>=1). You should write statements to calculate expression value is defined as follows:
1
S(n)1+-+35(n-1)+n
Notes:
- You can create new function(s) 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 = 2
Output for marking:
OUTPUT:1.33
-Input: n = 3
Output for marking:
OUTPUT:1.53
Zoom

+ 88%
Close

Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_SP_2024_-_PE06_1886.webp
File size
107 KB
Dimensions
1920px x 813px

Share this media

Back
Bên trên Bottom