PRF192_-_PE03_-_SP_2024_1520.webp
V

PRF192_-_PE03_-_SP_2024_1520.webp

OUTPUT:0.00
-Input: 4 5 6
Output for marking:
OUTPUT:
5.15
Question 2:
(3 marks)
The given file Q2.c already contains statements to input an integer variable n (n ≥0). You should write statements to calculate expression value:
S(n)=1+3+5+....+(2*n + 1)
Notes:
- You can create new function(s) if you see it is necessary.
- Do not edit given statements in the main function.
Zoom
+ 100%

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

Thông tin

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

Image metadata

Filename
PRF192_-_PE03_-_SP_2024_1520.webp
File size
113.5 KB
Dimensions
1920px x 760px

Share this media

Back
Bên trên Bottom