Lab # 2
Basics of PHP
Lab-2-6-Grade.php
<?php $a=50; echo "Your Grade : "; switch($a){ case $a>=90: echo " A <br>"; break; case $a>=80: echo " B <br>"; break; case $a>=70: echo " C <br>"; break; case $a>=50: echo " D <br>"; break; default: echo " You are Fail"; break; } ?>
Output
Displaying Grade | Practical Server |
Happy Coding :)
1 Comments
Are you study in rcti college
ReplyDeletePost a Comment