PRF192_-_PE_-_SU_2024_-_Block_5_-_s_7_2622.webp
H

PRF192_-_PE_-_SU_2024_-_Block_5_-_s_7_2622.webp

Users are required to enter two integer numbers 'x' and 'y' (x < y) using the keyboard (STDIN).
The system displays the sum value of the numbers from x to y.
Below is an example of how the program will run:
Enter the value 5 for 'x' and 15 for 'y'.
5
15
OUTPUT:
110
Press any key to continue
Question 3:
(1 mark, file to be edited: Q3.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}

Close
+ 100%
Zoom
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_SU_2024_-_Block_5_-_s_7_2622.webp
File size
69.8 KB
Dimensions
1920px x 803px

Share this media

Back
Bên trên Bottom