From 497e52f36a76c2ea831e1375a152f2a95004c15a Mon Sep 17 00:00:00 2001 From: NamaN <92272185+NamaNP77@users.noreply.github.com> Date: Mon, 11 Oct 2021 00:54:24 +0530 Subject: [PATCH] Update HCF.cpp --- HCF.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HCF.cpp b/HCF.cpp index 1a7632a..745cfda 100644 --- a/HCF.cpp +++ b/HCF.cpp @@ -1,7 +1,6 @@ #include using namespace std; - int GCD(int , int); int GCD(int a, int b) { if(b==0) @@ -11,7 +10,8 @@ using namespace std; else return GCD(b,a%b); - } + }; + int main() { int a,b; @@ -19,4 +19,4 @@ using namespace std; cin>>a>>b; cout<<"HCF="<< GCD(a,b); return 0; -} \ No newline at end of file +}