Create a function to calculate the greatest common divisor (GCD) of two numbers.
MediumProblem Statement
Create a function to calculate the greatest common divisor (GCD) of two numbers.
Sample Input
a = 48, b = 18
Sample Output
6
Limits
Time: 2s · Memory: 256 MB