어떤 사람의 C언어 성적이 주어졌을 때, 평점은 몇 점인지 출력하는 문제이다.
string grade = Console.ReadLine();
float score = 'E' - grade[0];
if (grade[0] == 'F') score = 0f;
else if (grade[1] == '+') score += 0.3f;
else if (grade[1] == '-') score -= 0.3f;
Console.WriteLine($"{score:0.0}");