header
s.no | Teacher_Name |
1 | Carmen |
comparison operators
";
}else {
echo "EXAM1 : a is not equal to b
";
}
if( $a < $b ) {
echo "EXAM2 : a is less than b
";
}else {
echo "EXAM2 : a is not less than b
";
}
if( $a > $b ) {
echo "EXAM3 : a is greater than b
";
}else {
echo "EXAM3: a is not greater than b
";
}
if( $a != $b ) {
echo "EXAM4 : a is not equal to b
";
}else {
echo "EXAM4 : a is equal to b
";
}
if( $a >= $b ) {
echo "EXAM5 : a is either greater than or equal to b
";
}else {
echo "EXAM5 : a is neither greater than nor equal to b
";
}
if( $a <= $b ) {
echo "EXAM6 : a is either less than or equal to b
";
}else {
echo "EXAM6 : a is neither less than nor equal to b
";
}
?>
output:
EXAM1 : a is not equal to b
EXAM2 : a is not less than b
EXAM3 : a is greater than b
EXAM4 : a is not equal to b
EXAM5 : a is either greater than or equal to b
EXAM6 : a is neither less than nor equal to b