fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. // int x,y;
  7. // cin>>x>>y;
  8.  
  9. // if (y!=0){
  10. // cout<<x/y<<endl;
  11. // }
  12. // else{
  13. // cout<<"ділення на нуль"<<endl;
  14. // }
  15.  
  16. // cout<<"Bye"<<endl;
  17.  
  18. // bool b1,b2;
  19. // b1=false;
  20. // b2=false;
  21. // cout<<(b1 or b2);
  22. int x;
  23. cin>>x;
  24. if ((x>=1) and (x<=4) )
  25. cout<<"початкова";
  26.  
  27. else
  28. if ((x>=5) and (x<10))
  29. cout<<"середня";
  30.  
  31. else
  32. if ((x<=11)and(x>=10))
  33. cout<<"старша";
  34.  
  35.  
  36.  
  37.  
  38. cout<<"Bye";
  39.  
  40.  
  41. return 0;
  42. }
Success #stdin #stdout 0s 5312KB
stdin
10
stdout
старшаBye