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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!