From d7ba623b62210793f92d775ed18e4e0477a63ea5 Mon Sep 17 00:00:00 2001 From: Taiga Takaoka Date: Tue, 21 Jun 2022 11:48:28 +0900 Subject: [PATCH] revised --- src/gcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gcd.c b/src/gcd.c index b083f1b..0e3956a 100644 --- a/src/gcd.c +++ b/src/gcd.c @@ -3,6 +3,8 @@ const int n = 1000; unsigned int Euclidean_gcd_rec(unsigned int x, unsigned int y){ + if(x == 0) return y: + return Euclidean_gcd_rec(y % x, x): } /*