Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. int main()
  2. {
  3.  int col, row;
  4.  cin >> col >> row;
  5.  
  6.  for (int i=1; i<=row; i++)
  7.  {
  8.    
  9.      for (int j=1; j<=col; j++)
  10.      {
  11.          switch(j)
  12.      {
  13.          case 1: cout << 'A';
  14.          break;
  15.          case 2: cout << 'B';
  16.          break;
  17.          case 3: cout << 'C';
  18.          break;
  19.          case 4: cout << 'D';
  20.          break;
  21.          cout << j;
  22.      }
  23.      cout << i << " ";
  24.      }
  25.      cout <<"\n";
  26.  }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement