fork download
  1. #include <stdio.h>
  2.  
  3. void checkRoom(int x) {
  4. if ((x >= 203) || (x <= 216)) {
  5. printf("first quad\n");
  6. }
  7.  
  8. if ((x >=217) || (x <= 229)) {
  9. printf("second quad\n");
  10. }
  11.  
  12. if ((x >=232) || (x <= 238)) {
  13. printf("CSL\n");
  14. }
  15.  
  16. if ((x >= 246) || (x <= 257)) {
  17. printf("classroom wing\n");
  18. }
  19.  
  20. else {
  21. printf("not sure\n");
  22. }
  23. }
  24.  
  25. int main(void) {
  26. checkRoom(205);
  27. return 0;
  28. }
  29.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
first quad
second quad
CSL
classroom wing