I have two questions relating to one problem given. I am very new to all of this and relatively stuck.
x = 0 y = 0 DOWHILE x < 2 DOWHILE y < 2 y = y + 1 Print y ENDDO x = x + 1 Print x ENDDO
How many numbers will be printed out after executing the above algorithm?
What is the fourth number to be printed out?
My guess for answer one would be two, but I have a feeling I am not reading into it as much as I should. Considering there is a fourth number to be printed, the answer of 2 has to be incorrect.
Anyone care to answer and explain this further? Or help me walk through this so I understand?