MATLAB: How can I write a program that take input(only 2 digit numbers) from the user and prints the division of 1st with respect 2nd(if I select input as 12 the ans would 0.5) .The program must repeat using while loop until both the digits entered are zer

division of 1st with 2ndhomework

Division of 1st digit with the second digit using while loop using input argument

Best Answer

You missed one change in the while loop condition:
while str2double(a)>0