What is the result of executing this program code?

Consider the following program code:
$x = 5;
$y = 10;
while(++$x < 10 && ++$y < 15)
{
print ($x $y );
}
print ($x $y );
What is the result of executing this program code?

Consider the following program code:
$x = 5;
$y = 10;
while(++$x < 10 && ++$y < 15)
{
print ($x $y );
}
print ($x $y );
What is the result of executing this program code?

A.
The code will output the following:
6 11 7 12 8 13 9 14 10 15

B.
The code will output the following:
6 11 7 12 8 13 9 14 10 14

C.
The code will output the following:
5 10 6 11 7 12 8 13 9 13

D.
The code will output the following:
5 10 6 11 7 12 8 13 9 14



Leave a Reply 0

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