Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void citire(int A[10][10],int n)
- {int i,j;
- for (i=1;i<=n;i++)
- for (j=1;j<=n;j++)
- {cout<<"A=["<<i<<"]["<<j<<"]=";cin>>A[i][j];}
- }
- void afisare_matrice(int A[10][10],int n)
- {int i,j;
- for (i=1;i<=n;i++)
- {for(j=1;j<=n;j++)
- cout<<A[i][j];
- cout<<endl;}
- }
- int main()
- {int A[10][10],n;
- cout<<"n=";cin>>n;
- citire(A,n);
- cout<<"Matricea este";
- cout<<endl;
- afisare_matrice(A,n);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement