Skip to content

Commit 6546248

Browse files
committed
Add Grade.java
1 parent f86a250 commit 6546248

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.thealgorithms;
2+
3+
public class Grade {
4+
public String getLetterGrade(int score) {
5+
if (score >= 90) {
6+
return "A";
7+
} else if (score >= 80) {
8+
return "B";
9+
} else {
10+
return "C";
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)