actually we are taking a as 20 and b as 12 ie we are preassuming that user will give us input as a>b
is user give call gcd(12,20) insted of call like gcd(20,12)
then it will keep on iterating
Doubt regarding which is greater of a and b
but parteek sir in his code did not put any condition to swap
bhaiya assume this->
u can put if b> a swap(a,b) inside ur gcd