No older revisions available
No older revisions available
~cpp #include <iostream> using namespace std; int main() { int n[10]={0,},p[5]={0,}; for(int i=0;i<10;i++) { cin >> n[i]; switch(n[i]/10){ case 6: p[0]++; break; case 7: p[1]++; break; case 8: p[2]++; break; case 9: p[3]++; break; case 10: p[3]++; break; default: p[4]++; break; } } cout << "A:"<<p[3]<<"B:"<<p[2]<<"C:"<<p[1]<<"D:"<<p[0]<<"F:"<<p[4]; return 0;
}