Advertisement
Josif_tepe

Untitled

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