Guest User

авпр

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