fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. float matrix[3][3] = {{1,2,3},{7,5,8},{5,11,4}};
  6. cout << "Deine Matrix: " << endl;
  7.  
  8. for(int i=0; i<3; i++){
  9. for(int j=0; j<3; j++){
  10. cout << matrix[i][j] << " ";
  11.  
  12.  
  13. }
  14. cout << endl;
  15. }
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
Deine Matrix: 
1  2  3  
7  5  8  
5  11  4