<html> <head> <title>Example:</title> </head> <body> <?php echo"Student details "; ?><br</br> <?php $sno = 21; $sname ='sateesh.bagadhi'; $class ='M.Sc Computer Science'; $mark =67; echo "Given student details are: "; ?> <br></br> <?php echo"student name:";echo $sname; ?> <br></br> <?php echo"student number is:";echo $sno; ?> <br></br> <?php echo"class is:";echo $class; ?> <br></br> <?php echo"result is:"; ?> <br></br> <?php if( $mark > 34 && $mark < 99 ) { if ($mark>59 && $mark<=100) echo"first class"; else echo"second class"; } else echo"fail"; ?> <br</br> </body> </html>
OUTPUT
Student details
Given student details are:
student name:sateesh.bagadhi
student number is:21
class is:M.Sc Computer Science
result is:
first class
No comments:
Post a Comment