fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t=0;
  6. (-5000<=t<=5000);
  7. while(cin>>t)
  8. if(t>=1900)
  9. cout<<"Division 1"<< endl;
  10. else if (t>=1600)
  11. cout<<"Division 2"<< endl ;
  12. else if(t>=1400)
  13. cout<<"Division 3"<< endl;
  14. else
  15. cout<<"Division 4"<< endl;
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5324KB
stdin
-1668
stdout
Division 4