GCD Function

PHP Easy 3 views
Back to Questions
Next Palindrome Function Easy N

Problem Description

Write a gcd(a,b) function and print gcd for the given inputs.

Input Format

One line: a b.

Output Format

One integer gcd.

Sample Test Case

Input:
18 24
Output:
6

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next