PRF192_-_PE_-_SU_2024_-_s_8_2159.webp
soft_wind

PRF192_-_PE_-_SU_2024_-_s_8_2159.webp

Question 7:
(1 mark, file to be edited: Q7.c)
The program allows users to enter an array of n real numbers from the keyboard.
Then, continue to enter a real number k.
The program prints to the screen the elements of the array with values other than k in descending order. For each printed element, get 1 digit after the decimal point.
Below is an example:
Enter n = 6, array = {2.2, 3.5, 4.11, 5.5, 4.11, 8), k = 4.11
5 of 5
Paper No: 8
6
2.2 3.5
4.11 5.5
4.11 8
4.11
OUTPUT:
8.0 5.5
3.5
2.2
Press any key to continue
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_SU_2024_-_s_8_2159.webp
File size
156 KB
Dimensions
1920px x 1051px

Share this media

Back
Bên trên Bottom