GCD in cpp 1

GCD in cpp

ll gcd(ll a, ll b)
{
    if (b==0)return a;
    return gcd(b, a % b);   
}

Here is what the above code is Doing:
1. It’s taking the input from the user.
2. It’s converting the input into a list of integers.
3. It’s sorting the list in ascending order.
4. It’s printing the sorted list.

Similar Posts