Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $nilaihuruf = $row['nilai'];
- if ( $nilaihuruf >= 85 )
- {
- echo "A";
- }
- elseif ( $nilaihuruf >= 75 )
- {
- echo "B";
- }
- elseif ( $nilaihuruf >= 65 )
- {
- echo "C";
- }
- elseif ( $nilaihuruf >= 55 )
- {
- echo "D";
- }
- else
- {
- echo "E";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement