Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int table(table[3][3]);
- int main()
- {
- cout << table;
- int a;
- int b;
- int c;
- while(a !=66)
- {
- cout <<"which one number SPACE number"<<endl;
- cin >> a >> b;
- system("clear");
- c = table [a][b];
- cout << c << endl;
- fflush(stdin);
- }
- return 0;
- }
- int table (table[3][3])
- {
- int table[3][3] = {{1,2,3},{4,5,6},{7,8,9}};
- cout << table[2][2] << endl;
- for(int col = 0; col < 3; ++col)
- {
- for(int row = 0; row < 3; ++row)
- {
- cout << table[col][row] << " ";
- }
- cout<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement