PRF193_PE_SP25_102556_3495.webp
May76

PRF193_PE_SP25_102556_3495.webp

  • Media owner May76
  • Ngày thêm
Kizspy.me
Question 3:
(3 marks)
The given file Q3.cpp already contains statements to input data for the integer 1-D array. You should
write statements to count the number of values whose last digit is 5 in the array.
Notes:
-Do not edit given statements in the main function.
- You can create new functions if you see they are necessary.
Sample input and output:
Please enter the size of the array: 5
a[0]=10
a[1]=15
a[2]=1
a[3]=25
a[4]=48
Output for marking:
OUTPUT:
2
Question 4:
(2 marks)
Zoom
+ 100%
Please enter the size of the array: 5
a[0]=10
a[1]=15
a[2]=15
a[3]=25
a[4]=48
Output for marking:
OUTPUT:
3
Close
Chưa có bình luận nào.

Thông tin

Category
PRF193
Thêm bởi
May76
Ngày thêm
Lượt xem
917
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom