Friday, April 25, 2014

Conditionals and Control Flow - 2/4 - codeacademy.com

Instructions:
  1. On line 7, set $items equal to a number greater than 5. Make sure to put a semicolon at the end of the line.
  2. On line 9, edit the condition so that your program will print out You get a10% discount!

<html>
  <head>
  </head>
  <body>
    <p>
      <?php
        $items = 6    // Set this to a number greater than 5!
     
        if($items > 5) {
          echo "You get a 10% discount!";
        }
      ?>
    </p>
  </body>
</html>

No comments:

Post a Comment