1、可以。
2、c++示例,因为是二维数组所以要用双层循环for。
#include<iostream>
using namespace std;
int main()
{
int j,k,n[2][2];
for(j=0;j<2;j++)
for(k=0;k<2;k++)
{
cout<<"input a number of integer:";
cin>>n[j][k];
}
for(j=0;j<2;j++)
{
for(k=0;k<2;k++)
{
cout<<n[j][k]<<" ";
}
cout<<endl;
}
}