Question: WRITE THE CODE & THE OUTPUTS Loops and flow control. Make function called loopTest (N) through N and for each number n it should display

WRITE THE CODE & THE OUTPUTS
Loops and flow control. Make function called loopTest (N) through N and for each number n it should display 'n is divisible by 2', 'n is divisible by 3', n is divisible by 2 AND 3' or 'n is NOT divisible by 2 or 3'. Use a for loop, the function mod or rem to figure out if a number is divisible by 2 or 3, and num2str to convert each number to a string for displaying. You can use any combination of if, else, and elseif. 6. that loops through the values 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
