Values of x and y will be displayed multiple times during the running of the program, and you might recognize a pattern.
The outputs that are impossible for this code to produce are :
Explanation :
The code can take in any outputs, but it will be impossible for this code to produce 0,0 and 2,4
x <- 0
REPEAT_UNTIL( x = 3 ){
y <- 0
x <- x+1
REPEAT_UNTIL ( y = 3 ){
y <- y+1
DISPLAY( x + ", " + y)
}
}
There will be an output when you input