Advertisement
H4nk

Nilai Huruf

Feb 19th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?php $nilaihuruf = $row['nilai'];
  2. if ( $nilaihuruf >= 85 )
  3. {
  4.     echo "A";
  5. }
  6.     elseif ( $nilaihuruf >= 75 )
  7. {
  8.     echo "B";
  9. }
  10.     elseif ( $nilaihuruf >= 65 )
  11. {
  12.     echo "C";
  13. }
  14.     elseif ( $nilaihuruf >= 55 )
  15. {
  16.     echo "D";
  17. }
  18.     else
  19. {
  20.     echo "E";
  21. }
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement