Search
 
SCRIPT & CODE EXAMPLE
 

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;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: docker.io : Depends: containerd (= 1.2.6-0ubuntu1~) E: Unable to correct problems, you have held broken packages 
Cpp :: setprecision c++ 
Cpp :: convert integer to string c++ 
Cpp :: c++ program to reverse an array 
Cpp :: convert string to lpwstr 
Cpp :: cpp cin 
Cpp :: coordinate in 1d array 
Cpp :: C++ program that prints the prime numbers from 1 to 1000. 
Cpp :: Xor implementation C++ 
Cpp :: check if a string is palindrome cpp 
Cpp :: how to find 2d vector length cpp 
Cpp :: delete dynamic array c++ 
Cpp :: string to uint64_t c++ 
Cpp :: cpp pushfront vector 
Cpp :: back() in c++ 
Cpp :: string to integer in c++ 
Cpp :: stack implementation using class in c++ 
Cpp :: reverse order binary tree in c++ 
Cpp :: how do you wait in C++ 
Cpp :: unique_ptr syntax 
Cpp :: c++ vs g++ 
Cpp :: a square plus b square plus c square 
Cpp :: what is g++ and gcc 
Cpp :: Inner Section Sticky Scroll in elementor 
Cpp :: c++ string slicing 
Cpp :: Visual studio code include path not working c++ 
Cpp :: c++ auto 
Cpp :: swap in cpp 
Cpp :: how to add space in c++ 
Cpp :: do while c++ 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =