Sinux1

T7E6.cpp

Apr 9th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string matrix[3][4] = {
  8.         {"Gates", "Mayer", "Brin", "Jobs"},
  9.         {"Musk", "Cuban", "Ford", "McAfee"},
  10.         {"Bezos", "Zuckeburg", "Hendricks", "Disney"}
  11.         };
  12.  
  13.     for(int row = 0; row < 3; row++)
  14.     {
  15.         for(int column = 0; column < 4; column++)
  16.         {
  17.             cout << matrix[row][column] << " ";
  18.         }
  19.         cout << endl;
  20.     }
  21.     cout << matrix[0][2] << endl
  22.     << matrix[2][3] << endl;
  23.     return 0;
  24. }
Add Comment
Please, Sign In to add comment