Velocity Test: Greatest Common Divisor
Last modified by XWikiGuest on 2021/05/03 08:17
For example:
a=0, b=0 => 0
a=7, b=0 => 7
a=7, b=5 => 1
a=35, b=42 => 7
a=42, b=35 => 7
a=-42, b=35 => No negative number allowed
a=7, b=0 => 7
a=7, b=5 => 1
a=35, b=42 => 7
a=42, b=35 => 7
a=-42, b=35 => No negative number allowed