| 13 | } |
| 14 | |
| 15 | int main(){ |
| 16 | cin.tie(0)->sync_with_stdio(0); |
| 17 | int a,b; |
| 18 | cin>>a>>b; |
| 19 | int ans; |
| 20 | for (int i =1; i<=min(a,b); ++i) |
| 21 | { |
| 22 | if(a%i==0 && b%i==0) |
| 23 | ans=i; |
| 24 | } |
| 25 | cout<<"using brute force gcd : "<<ans<<endl; |
| 26 | cout<<"gcd of nums are : "<<gcdeuclid(a,b); |
| 27 | |
| 28 | return 0; |
| 29 | } |
nothing calls this directly
no test coverage detected