PRF192_-_PE01_-_FA_2024_2868.webp
Yami92

PRF192_-_PE01_-_FA_2024_2868.webp

  • Media owner Yami92
  • Ngày thêm
Question 2:
(3 marks)
The given file Q2.c already contains statements to input integer number. You should write statements to calculate the following expression value: S(n)=1/2+1/4+....+1/(2*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:
3 of 4 Paper No: 1
Input:Enter n: 3
After processing: S(n) = (1/2+1/4+1/6)=0.92
Output for marking:
OUTPUT:0.92
Question 3:(2 marks)
Zoom FUD
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE01_-_FA_2024_2868.webp
File size
119 KB
Dimensions
1920px x 859px

Share this media

Back
Bên trên Bottom