Quotes help make search much faster. Example: "Practice Makes Perfect"

Tuesday, April 23, 2013

Codecademy Sample Solution: All On Your Own!



<!DOCTYPE html>
<html>
    <head>
<title>Your own do-while</title>
        <link type='text/css' rel='stylesheet' href='style.css'/>
</head>
<body>
    <?php
        //write your do-while loop below
        $loopCount = 0;
        do{
            echo "<p>LoopCount value is {$loopCount}.</p>";
            $increment = rand(0,2);
            $loopCount = $loopCount + $increment;
        }while($loopCount<15);
    ?>
    </body>
</html>

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts