What will be the output of the following code snippet? If th…

What will be the output of the following code snippet? If the program results in an error, put down ‘ERROR’.  x = 12y = 0while x >= 4:   y = 12   while y >= x:       y -= 3       if y % 3 == 1:           y += 4   x -= yprint((x + y) // 2)

What will be the output of the following code snippet? If th…

What will be the output of the following code snippet? If the program results in an error, put down ‘ERROR’.  x = 0y = 8while x < y:        y -= 1        x = int(y/2)        if x % 2 != 0:                x += 1print(x)