CSci 115: Computing and the Internet
Home Syllabus Assignments Tests

Quiz 2 Review

[1] [2] [3] [4] [5] [6] [7]

Problem Q2r.1.

Draw what will appear in the browser as a result of accessing the following PHP file.

<html>
<head><title>Mystery</title></head>
<body>

<?php
  $i = 1;
  while($i <= 4) {
    $k = 3 * $i + 1;
    echo "$k,";
    $i = $i + 1;
  }
?>

</body>
</html>
4,7,10,13,