This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Control Flow: Switch Forum

View Course » View Exercise

547 points
3ddc985557a502edae046114a02708ea?s=140&d=retro
Submitted by
Jo
about 4 years ago

I think I get the wrong answer.

I just write these things down:
$a=3;
$b=4;
if ( $a < $b ) {
echo "<";
} elseif ( $a > $b ){
echo ">";
} else {
echo "=";
}

And I get the answer: < >

How amazing!


0 votes

permalink

i tried your code, and nothing was returned on my screen. must be some bug of the site...
i try de same code in my personal server wamp and the code is ok.

109 points
Picture
Submitted by
Filipe Larizzatti
about 4 years ago

1 Comment

3ddc985557a502edae046114a02708ea?s=140&d=retro Jo about 4 years ago

yes, it's ok on other php server~