Advertisement
Josif_tepe

Untitled

Dec 18th, 2022
687
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.             if(mat[i][j] == 0) {
  15.                 cout << i << " " << j << endl;
  16.             }
  17.         }
  18.     }
  19.    
  20.  
  21.     return 0;
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement