Question: MATLAB loops question: write a code that divide 2 positive integer numbers using ONLY for or while loops and addition and subtraction. Topics: while loop,
Topics: while loop, for loop plot and subplot. Q1. Write a code that divide 2 positive integer numbers using Only for or while loops and addition and subtraction. The code should prompt the user to input two positive integer numbers (x & y) and return the integer result, z x/y and the reminder, r. The code should return an error if the numbers entered are not integers nor positive. Write a code using while loop to perform the division and get the integer result, z, and the remining, r. Do NOT use rem, mod or regular division commands. The result of dividing 33 by 7 is4and the remainder is 6 5/12-Or5 The result of dividing 93 by 6 is 15 and the remainder is 3 125/12- 10r5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
