Kizspy. me 3.34
Question 3:
3 of 4
Paper No: 1
(2 marks)
The given file Q3.c already contains statements to input data for the integer 1-D array and an integer variable named x. You should write statements to count the elements that have the last digit as x.
Notes:
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
INPUT:
Array: 15 12 22 23 2
x=2
After processing: count =3 (12, 22, 2)
Output for marking:
OUTPUT:
3
Zoom
+ 100%
Close