From 404c472e8c95a7afadaf7e122708f5247db57940 Mon Sep 17 00:00:00 2001 From: Nova-007 <56170103+Nova-007@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:02:06 +0530 Subject: [PATCH] function for calculating GCD had an error --- C Programs/C Programs - 2/Little Shino and Common Factors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C Programs/C Programs - 2/Little Shino and Common Factors.cpp b/C Programs/C Programs - 2/Little Shino and Common Factors.cpp index 17593a3..b2f55b2 100644 --- a/C Programs/C Programs - 2/Little Shino and Common Factors.cpp +++ b/C Programs/C Programs - 2/Little Shino and Common Factors.cpp @@ -7,7 +7,7 @@ long long gcd(long long a, long long b) if(b == 0) return a; else - return gcd(a, a%b); + return gcd(b, a%b); } long long no_of_factors(long long n)