SHARE
TWEET

Untitled

a guest May 19th, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for(int i = 1, int i < 5; i++) {
  2.     switch(i) {
  3.         case 1:
  4.         cout << "Lab 1: ";
  5.         for(int j = 1; j < 6; j++)
  6.             cout << "station " << j << "user " lab1[j-1] << ", ";
  7.         break;
  8.         case 2:
  9.         cout << "Lab 2: ";
  10.         for(int j = 1; j < 7; j++)
  11.             cout << "station " << j << "user " lab1[j-1] << ", ";
  12.         break;
  13.         case 3:
  14.         cout << "Lab 3: ";
  15.         for(int j = 1; j < 4; j++)
  16.             cout << "station " << j << "user " lab1[j-1] << ", ";
  17.         break;
  18.         case 4:
  19.         cout << "Lab 4: ";
  20.         for(int j = 1; j < 5; j++)
  21.             cout << "station " << j << "user " lab1[j-1] << ", ";
  22.         break;
  23. }
  24. }
RAW Paste Data
Want to get better at C?
Learn to code C in 2017
Top