PRF192_-_SP_2025_-_DN_-_PE_3480.webp
G

PRF192_-_SP_2025_-_DN_-_PE_3480.webp

5015
Kizspy.me
Paper No: 7
Question 8:
(1 mark, file to be edited: Q8.c)
Your program allows the user to enter an array of 'n' integer numbers, where 'n' is entered from the
keyboard (STDIN).
Program to print the even numbers sorted in ascending order. There is a newline character '\n' between
any two printed numbers.
Below is an example when 'n' = 6; elements: {2, -4, 5, 8, 15, 0}
2-4 5 8 15 0
OUTPUT:
2
8
-4
Press any key to continue...
Question 9:
(1 mark, file to be edited: Q9.c)
Write a program that sorts an array of integers input by the user in ascending order.
Below is an example of how the program will run:
INPUT:
5
Enter 5 elements: 1 3 4 52
OUTPUT:
1 2 3 4 5
Zoom
Question 10:
(1 mark, file to be edited: Q10.c)
100%
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom