write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible. restrictions: branches or loops should not be used. the code must use the internal mod function.

Respuesta :

The checkfactor function, which requires two arrays of positive values, will be;

function checkFactor [firstDivisible, secondDivisible] (firstNumberRow, secondNumberRow)

logical(rem(firstNumberRow,secondNumberRow)); testArray

firstNumberRow = firstDivisible(testArray);

secondNumberRow = secondDivisible(testArray);

mod(3,1);

In coding and programming, an array is a collection of objects, or data, stored in adjacent memory spaces. The function of an array is to store several instances of the same type of data together. In computer science, techniques that enable operations to be applied to a whole set of values at once are referred to as array programming. In the fields of science and engineering, these kinds of solutions are frequently employed. An array is a type of variable that may store numerous values. Use an array, for instance, if you need to hold 100 integers. int data[100];

Learn more about programming here-

https://brainly.com/question/11023419

#SPJ4