Time limit exceded for both iterative and recursive


#1

showing tle for both iterative and recursive


#2

their must be a missed base condition leading to an infinite loop


#3

Use Euclids Algorithm instead


#4

Don’t forget to take conditions for A==0 and B==0