/* Write a function int count_last5 (int A[], int size) that finds and returns the number of elements in the array whose last digit is equal to 5. Then, write a program that: Randomly generates an array of 10 integers, each between 1 and 500. Prints the randomly generated array. Calls the count_last5 function and prints the number of integers in the array whose last digit is 5. Hint: to find last digit of num, use num%10. */ #include #include #include #define SIZE 10 int count_last5 (int A[], int size); void make_random_array(int A[], int size, int min, int max); void print_array(int A[], int size); int main(){ int A[SIZE]; srand(time(NULL)); make_random_array(A, SIZE, 0,500); print_array(A, SIZE); printf("the number of ints with last digit 5 is %d\n", count_last5(A, SIZE)); } int count_last5(int A[], int size){ int i, count=0; for(i=0;i