What is the result of executing this program code?

Consider the following program code
$x – 0;
$y = 5;
do
{
print (“$x $y “);
) while (++$x < 5 && ++$y < 10);
print (“$x $y “);
What is the result of executing this program code?

Consider the following program code
$x – 0;
$y = 5;
do
{
print (“$x $y “);
) while (++$x < 5 && ++$y < 10);
print (“$x $y “);
What is the result of executing this program code?

A.
The code will output the following
1 6 2 7 3 8 4 8 5 10 6 11

B.
The code will output the following
0 5 1 6 2 7 3 8 4 9 4 9

C.
The code will output the following
0 5 1 6 2 7 3 8 4 9 5 10

D.
The code will output the following
0 5 1 6 2 7 3 8 4 9 5 9



Leave a Reply 1

Your email address will not be published. Required fields are marked *