Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ Greatest common divisor

#include <bits/stdc++.h>
using namespace std;
//use c++ 17
int main(){
    long long a,b;
    cin>>a>>b;
    cout<<__gcd(a,b);
	return 0;
}
 
PREVIOUS NEXT
Tagged: #Greatest #common #divisor
ADD COMMENT
Topic
Name
6+8 =