PRF192_-_FA_2024_-_PE_-_s_-_8_2867.webp
Riza851

PRF192_-_FA_2024_-_PE_-_s_-_8_2867.webp

  • Media owner Riza851
  • Ngày thêm
Question 3:
(1 mark, file to be edited: Q3.c)
3 of 3
Paper No: 8
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
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_FA_2024_-_PE_-_s_-_8_2867.webp
File size
246.7 KB
Dimensions
2880px x 1478px

Share this media

Back
Bên trên Bottom