Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 601 Bytes

0034.md

File metadata and controls

25 lines (22 loc) · 601 Bytes

Consider the following code:

$a;
for($a = 1; $a <= 100; $a++)  {
    if ($a == 50) {
        continue;
    }
    print($a);
}

What will be the output of the program?

  • A) A series from 1 to 100 will be printed. The number 50 will not be printed.
  • B) A series from 1 to 50 will be printed.
  • C) A series from 51 to 100 will be printed.
  • D) A series from 1 to 100 will be printed.
Answer

Answer: A