fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. const int n = 15;
  6. double A[n][n];
  7. for (int i = 0; i < n; i++){
  8. for (int j = 0; j < n; j++)
  9. cin >> A[i][j];
  10. }
  11. for (int i = 0; i < n; i++){
  12. for (int j = 0; j < n; j++)
  13. if (A[i][j]!=0){
  14. cout << "("<< i <<','<< j <<")" << "\t";
  15. }
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 3472KB
stdin
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
stdout
Standard output is empty