Student Passed or Failed

monif64 · updated August 01, 2020 · PHP
<?php
$studentGrade = 30; 

if($studentGrade >= 40) {
    echo "You Passed";
}

if($studentGrade < 40) {
    echo "You Failed";
}
?>

Comments

Please sign up or log in to contribute to the discussion.