7/7 Why don't my dice program work?


#1

i want my dice to flip until there is a six. what is missing?

do {

    $flip = rand(1,6); }

    while($flip != 6);


    echo "You got number " . $flip;

#2

Hi, everything looks great. But make sure to include all your PHP code within the PHP tags:

<?php

// Your code here

?>