PRF192_-_FA_2024_-_PE_-_s_-_5_2869.webp
thanhphuong

PRF192_-_FA_2024_-_PE_-_s_-_5_2869.webp

Question 3:
(1 mark, file to be edited: Q3.c)
3 of 3
Paper No: 5
Your program allows the user to enter an array of N integer numbers, where N is entered from the keyboard (STDIN).
Continue to enter an integer K.
Find and print the numbers in the array that are divisible by K. There is a newline character '\n' between any two printed numbers. If not found print the message: "Not found in N elements of array"
Here are two examples:
Case 1: N = 5; Array = {2, -4, 5, 8, 0); K = 4
5
2-4580
4
OUTPUT:-48
Close
+ 100%
Zoom
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_FA_2024_-_PE_-_s_-_5_2869.webp
File size
150.2 KB
Dimensions
1920px x 1051px

Share this media

Back
Bên trên Bottom