Since we need to find gcd(1202,4848)
a = 1202 , b = 4848 initially d = 1
Since both, the numbers are even
therefore
a := a/2
b := b/2
c := 2d
Implies’
a := 601
b := 2424
c := 2
So, we need to determine gcd(601,2424)
Now a is odd and b is even
b := b/2
b := 1212
d := 2
So, we need to determine gcd(601,1212)
Again, a is odd and b is even
b := b/2
b := 303
d := 2
So, we need to determine gcd(601,303)
Now a and b both are odd
a:= a/2
a := 149
d := 2
So, we need to determine gcd(149,303)
Now both a and b are odd
b := b - a
b := 303 - 149 = 154
d := 2
So, we need to determine gcd(149,154)
Now a is odd b is even
b := b /2
b := 77
d := 2
So, we need to determine gcd(149,77)
Now both a and b are odd. So, we need to determine gcd (72,77) and d := 2
Now a is even and b is odd. So, we need to determine gcd (36,77) and d := 2
Now a is even and b is odd. So, we need to determine gcd (18,77) and d := 2
Now a is even and b is odd. So, we need to determine gcd (9,77) and d := 2
Now both a and b are odd. So, we need to determine gcd (9,68) and d := 2
Now a is odd and b is even. So, we need to determine gcd (9,34) and d := 2
Now a is odd and b is even. So, we need to determine gcd (9,17) and d := 2
Now both a and b are odd. So, we need to determine gcd (9,8) and d := 2
Now a is odd and b is even. So, we need to determine gcd (9,4) and d := 2
Now a is odd and b is even. So, we need to determine gcd (9,2) and d := 2
Now a is odd and b is even. So, we need to determine gcd (9,1) and d := 2
Now both a and b are odd. So, we need to determine gcd (8,1) and d := 2
Now a is even and b is odd. So, we need to determine gcd (4,1) and d := 2
Now a is even and b is odd. So, we need to determine gcd (2,1) and d := 2
Now a is even and b is odd. So, we need to determine gcd (1,1) and d := 2
Therefore, the greatest common divisor is equal to the value of d := 2
Hence gcd (1202 , 4848) = 2