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 +}