Skip to content

Commit da31b1c

Browse files
committed
Corrected if-statement mistake (this error was in the original rst version)
1 parent b0fe3ce commit da31b1c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎pretext/Java4Python/conditionals.ptx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ public class ElseIf {
7979
System.out.println('F');
8080
} else {
8181
if (grade < 70) {
82-
System.out.println('F');
82+
System.out.println('D');
8383
} else {
8484
if (grade < 80) {
85-
System.out.println('F');
85+
System.out.println('C');
8686
} else {
8787
if (grade < 90) {
88-
System.out.println('F');
88+
System.out.println('B');
8989
} else {
90-
System.out.println('F');
90+
System.out.println('A');
9191
}
9292
}
9393
}

0 commit comments

Comments
 (0)