if (score < 0) {
}
if (score < 0) {
return "P"
} else {
return "F"
}
Java에서 if - else 는 Statement이지만, Kotlin에서는 Expression이다.

int score = 30 + 40;
String grade = if (score >= 50) {
"P";
} else {
"F";
}
-> COMPILE ERROR!
String grade = score >= 50 ? "P" : "F";