
Write a program that prints the greatest common divisor of two strictly positive integers.
./gcd 36 48Expected result
12
For your own tracking. Tests grade your code.
./gcd 100 75Expected result
25
./gcdExpected result
wrong number of arguments
Expected files
gcd.cAllowed functions
printfatoi
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that prints the greatest common divisor of two strictly positive integers.
./gcd 36 48Expected result
12
For your own tracking. Tests grade your code.
./gcd 100 75Expected result
25
./gcdExpected result
wrong number of arguments
Expected files
gcd.cAllowed functions
printfatoi
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.