fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int a = 5;
  7. if(a < 3) {
  8. cout<<"one"<< endl;
  9. }
  10. else if(a < 10) {
  11. cout<<"two"<< endl; }
  12. else if(a < 20) { cout<<"three"<< endl;
  13. }
  14. else {
  15. cout<<"four"<< endl; }
  16. }
Success #stdin #stdout 0.01s 5344KB
stdin
Standard input is empty
stdout
two