Created
July 12, 2017 16:26
-
-
Save mudathirlawal/60b166c8ba97ff235b717bfa8981f2d8 to your computer and use it in GitHub Desktop.
null created by mudathirlawal1 - https://repl.it/JYZ4/3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//do-while loop: | |
$nthCount = 1; | |
do { | |
$roll = rand(1, 6); | |
echo "<p>At the #$nthCount throw, die displays $roll</p>"; | |
echo "<p>-----------------------------------</p>"; | |
$nthCount += 1; | |
} while ($roll != 6); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, just take a look.