PRF192_-_PE02_-_FA_2024_3198.webp
ThuyHoa2000

PRF192_-_PE02_-_FA_2024_3198.webp

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
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE02_-_FA_2024_3198.webp
File size
139.6 KB
Dimensions
1920px x 990px

Share this media

Back
Bên trên Bottom