Advertisement
Josif_tepe

Untitled

Mar 26th, 2021
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int mat[3][9];
  8.     mat[0][0] = 1;
  9.     mat[0][1] = 2;
  10.     mat[0][2] = 6;
  11.     mat[0][3] = 9;
  12.     mat[0][4] = 4;
  13.     mat[0][5] = 3;
  14.     mat[0][6] = 15;
  15.     mat[0][7] = 10;
  16.     mat[0][8] = 50;
  17.     for(int i = 0; i < 9; i += 1) {
  18.         cout << mat[0][i] << " ";
  19.     }
  20.     return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement