Server IP : 172.16.15.8 / Your IP : 18.225.95.229 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/pswoodson/cs212/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
// // #include <iostream> using namespace std; int main () { int x[][4] ={ {1,2,3},{5,6,7} }; // out: r2c3,r1c4? cout << "x[1][2]:" << x[1][2] << ", x[0][3] : " << x[0][3]; cout << "\n enter number for row 2 and col. 2\n"; cin >> x[1][1]; cout << "\n enter number for row and col. 4\n"; cin >> x[0][3]; cout << "\n enter number for row 2 and col. 4\n"; cin >> x[1][3]; for(int i=0; i<2; i++) { for(int j=0; j<4; i++) cout << x[i][j] << " "; cout << "\n"; } cout << "\nDone. Bye\n\n"; return 0; }