Answer to Question #99179 in MatLAB for lana majeed

Question #99179
Loops and flow control. Make function called loopTest(N) that loops through the values 1
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.
1
Expert's answer
2019-11-22T03:24:33-0500
Dear lana majeed, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS