#include <iostream>
using namespace std;
int main() {
int a[4][4] , sum ;
for ( int i = 0 ; i <= 3 ; i++){
for ( int j = 0 ; j <=3; j++){
a[i][j] = rand () % 100 ;
cout << a[i][j] << " " ;
sum += a[i][j] ;
}
cout << endl << endl ;
}
if (( sum >999) && ( sum <=9999)){
cout << " Сумма четырёхзначное число" << endl ;
}
else {
cout << " Сумма НЕ четырёхзначное число" << endl ;
}
return 0;
}