Skip to content
C

Greatest Common Divisor

Easyjavapythonccppjavascript

Given two positive integers, find their greatest common divisor (GCD).

Input Format

A single line containing two integers A and B.

Output Format

Print the GCD of A and B.

Input (stdin)

Output

Run your code to see output here...