C/C++ Program to Find GCD of Two Numbers Using Recursion

In this program we will use recursion and Euclid’s algorithm to find greatest common divisor of two numbers. The definition of Euclid’s algorithm is as follows:

Also Read: C program to find factorial of any number using recursion
Also Read: How to Convert a Recursive Function or Algorithm to Non-Recursive?

C Program

C++ Program

C/C++ Program to Find GCD of Two Numbers Using Recursion

One thought on “C/C++ Program to Find GCD of Two Numbers Using Recursion

  1. junaid kundi

    hoe to write it in coino.h mean not that one which u write above of C++ in simple if or if else statment

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *