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