Is gcd an inbuilt STL function?

here we have written a very short code that is why i am asking.

The one taught in the video is not inbuilt but the recursive approach to find GCD.
But there is also an inbuilt function in stl to compute gcd.
Here is its synatx
__gcd(int num1,int num2)
This will compute the gcd of number num1 ad num2

1 Like

how to use inbuilt gcd STL function. here is my code

Check now

1 Like