You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
485 B
C++

#include <cstdio>
using namespace std;
int main()
{
int x;
while (~scanf("%d", &x))
{
if (90 <= x && x <= 100)
puts("A");
else if (80 <= x && x <= 89)
puts("B");
else if (70 <= x && x <= 79)
puts("C");
else if (60 <= x && x <= 69)
puts("D");
else if (0 <= x && x <= 59)
puts("E");
else
puts("Score is error!");
}
return 0;
}