educative.io

The solution will cause a runtime error if one of the number equals 0


#1

Hi This Java solution for “Find the Greatest Common Divisor” has a runtime error if one of the two numbers equals 0. Could you please help correct it? Thanks!