Question: Please don't use the user defined functions. I am posting this question for the third time. Please. Shown below is a way to compute the

Please don't use the user defined functions. I am posting this question for the third time. Please.
Shown below is a way to compute the GCD, called Euclid's Algorithm. - First compute the remainder of dividing the larger number by the smaller number - Next, replace the larger number with the smaller number and the smaller number with the remainder. - Repeat this process until the smaller number is 0. The GCD is the last value of the larger number. In order to find the LCM of the two given numbers, start with the largest number and increase the numbers by one until you find a number, which is divisible by the both given numbers. NOTE: If the user enters two float numbers, the code should issue an error message. For example, if a=5. and b=2. , then the output from the program should be: Enter the first integer number: 5 Enter the second integer number: 2 The Greatest Common Divider is: 1 The Larger Common Multiplier is: 10 Programed by Stew Dent. Date: Sn Jan 29 10:05:34 2023 End of processing. If a=6.4, and b=4, then the output from the program should be: Enter the first integer number: 6.4 Enter the second integer number: 4 A float value is entered which is not acceptable! Programmed by Stew Dent. Date: Sun Jan 29 10:07:40 2023 End of processing. Please solve this in python without the use of user defined functions. I know we can solve this with functions but it is not taught in the university yet and they will consider it as cheating if I use functions. Thanks in advance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
