Advertisement
Garey

Двумерен Масив - 5.т

Nov 3rd, 2017
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.    
  7. double a[4][4];
  8.  
  9.   for (int i = 0; i < 4; i++) {
  10.     for (int j = 0; j < 4; j++) {
  11.       cout << "Enter a[" << i << "][" << j << "]: ";
  12.       cin >>a[i][j];
  13.     }
  14.   }
  15.  
  16.   for (int i = 0; i < 4; i++) {
  17.     for (int j = 0; j < 4; j++) {
  18.  
  19.       cout << a[i][j] << "  ";
  20.     }
  21.     cout << endl; // За отделяне на всеки ред по отделно
  22.   }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement