Question: # This program [Exercise 2]. Exercise 2: Write a python program to find the greatest common divisor of two numbers and display it to the
\# This program [Exercise 2]. Exercise 2: Write a python program to find the greatest common divisor of two numbers and display it to the user in the desired format. Follow the given steps to get a valid mark: - Prompt the user to enter two numbers m and n as arguments. - Define a recursive function named as gcd(m,n) where m and n are integers. The function should find the greatest common divisor of two numbers and return it as an integer. - Display the output in main function as given below. SAMPLE RUN: M: 2024 N: 48 GCD: 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
