#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char** argv) { int n; char score; cin>>n; switch(n/10){ case 10: case 9:score='A';break; case 8: case 7:score='B';break; case 6:score='C';break; case 5: case 4: case 3: case 2: case 1: case 0:score='D';break; default: score=32;break; } cout<<score<<endl; system("pause"); return 0; }