PRF192_-_PE_-_SP_2024_-_s_-_8_1491.webp
Hanami81

PRF192_-_PE_-_SP_2024_-_s_-_8_1491.webp

  • Media owner Hanami81
  • Ngày thêm
Question 7:
(1 mark, file to be edited: Q7.c)
Your program allows users to enter an array of 'n' integers, where 'n' is entered by the user (n < 10).
The program prints the square value of odd numbers and sorts them in descending order.
Below is an example:
Enter n = 5, array = {5, 4, 3 7, 8)
5
54378
OUTPUT:
49 25 9
Press any key to continue
Question 8:
(1 mark, file to be edited: Q8.c)
Your program allows the user to enter an array of 'n' integers, where 'n' is entered by the user.
The program prints duplicate elements that are odd numbers to the screen. There is a newline character between any two adjacent numbers.
Below is an example:
+ 100%
Zoom

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

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_SP_2024_-_s_-_8_1491.webp
File size
174.6 KB
Dimensions
1920px x 972px

Share this media

Back
Bên trên Bottom