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