If elseif else statements


#1

Here is what I coded, but it won't take it:
<?php
$guess = 7;
$number = 7;
if($guess < $number) {
echo "Too low!";
}
elseif ($guess > $number) {
echo "Too high!";
}
else {
echo "You win!";
}
?>


#2

<?php
  $guess = 7;
  $number = 7;
    if($guess < $number) {
     echo "Too low!";
  }
   elseif ($guess > $number) {
     echo "Too high!";
 }
  else {
     echo "You win!";
 }
?>

This works where are the instructions