#include<iostream>
using namespace std;
int main()
{int n,i,j,a[100][100];
cout<<"n=";cin>>n;
for(i=0;i<n;i++)
for(j=0;j<n;j++)
{cout<<"a["<<i<<"]["<<j<<"]=";cin>>a[i][j];}
for(i=0;i<n;i++)
{cout<<endl;
for(j=0;j<n;j++)
cout<<a[i][j]<<" ";}
}
Orar semigroup #2
Citirea si afisarea unei matrici
vineri, 9 iulie 2010
by DlMuresan
Categories:
info,
matrici
|
Leave a comment