Write an algorithm and flowchart to find the GCD (Greatest Common Divisor) of two numbers.
दो संख्याओं का GCD (Greatest Common Divisor / महत्तम समापवर्तक) ज्ञात करने के लिए एक Algorithm और Flowchart लिखिए।
ExampleInput: A = 24, B = 36
GCD: 12
TEMP = A % B
A = B
B = TEMP
Repeat until B = 0.
When B becomes 0, the value of A is the GCD.
Flowchart :-
