Question: Write Python code that takes as input two positive integers greater than 0 (int 1 and int2) where int2 is even and greater than int1.
Write Python code that takes as input two positive integers greater than 0 (int 1 and int2) where int2 is even and greater than int1. If the input is not valid, print an appropriate message to the user, and keep asking until the user enters the correct values. (hint: you have to use a conditional loop). Then find the greatest common divisor of int1 and int2 (the highest number that is divisible of both int1 and int2) and print the output with the same formatting as the below example. Remember to put comments along your code explaining your logic
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
