Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- string matrix[3][4] = {
- {"Gates", "Mayer", "Brin", "Jobs"},
- {"Musk", "Cuban", "Ford", "McAfee"},
- {"Bezos", "Zuckeburg", "Hendricks", "Disney"}
- };
- for(int row = 0; row < 3; row++)
- {
- for(int column = 0; column < 4; column++)
- {
- cout << matrix[row][column] << " ";
- }
- cout << endl;
- }
- cout << matrix[0][2] << endl
- << matrix[2][3] << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment