Advertisement
Guest User

Untitled

a guest
Feb 1st, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1. char grade;
  2. if (testResult >= 90) {
  3.     grade = 'A';
  4. } else {
  5.     if (testResult >= 80) {
  6.         grade = 'B';
  7.     } else {
  8.         if (testResult >= 70) {
  9.             grade = 'C';
  10.         } else {
  11.             grade = 'D';
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement