Write a function named allMutipleFive which has two input parameters: number(represents an integer array) and size (the actual size of the array). The function returns 1 if all the elements in the array are multiples of 5; otherwise; it returns 0. I need help with this
Have you any idea where to begin?
This question is very easy.
int allMutipleFive (int number[], int size){
for(int i = 0; i < size; i++){
if(number[i] % 5 != 0){
return 0;
return 1;
Topic archived. No new replies allowed.