The Flowchart given here represents the calculation of GCD (Greatest Common Divisor).

Flowchart for GCD

The code for calculating the LCM and GCD is given in the below link.

Finding GCD and LCM of Given Numbers using C