Well, just ask the user for both of the numbers. Use the input function and don't forget to cast your input to integers.
Create a while loop to run while your first number is greater than 0. print out the larger number minus the smaller number and then subtract your smaller number from the larger one and store the new value in the pre-existing variable that you created to hold you larger number. Then subtract 1 from your smaller number and store that new value in the pre-existing variable for the smaller number.
You might have to modify the condition to run your while loop. I can't really tell if you want to keep subtracting into the negatives or stop when your larger number is a single digit.
1
u/scoopulanang Feb 28 '21
Well, just ask the user for both of the numbers. Use the input function and don't forget to cast your input to integers.
Create a while loop to run while your first number is greater than 0. print out the larger number minus the smaller number and then subtract your smaller number from the larger one and store the new value in the pre-existing variable that you created to hold you larger number. Then subtract 1 from your smaller number and store that new value in the pre-existing variable for the smaller number.
You might have to modify the condition to run your while loop. I can't really tell if you want to keep subtracting into the negatives or stop when your larger number is a single digit.