Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- void citire(int a[10][10],int &n)
- {
- ifstream in("date.in");
- int i,j;
- in>>n;
- for(i=1; i<=n; i++)
- for(j=1; j<=n; j++)
- in>>a[i][j];
- in.close();
- }
- ofstream out("datee.out");
- void afisare(int a[10][10],int &n)
- {
- int i,j;
- for(i=1; i<=n; i++)
- {
- for(j=1; j<=n; j++)
- out<<a[i][j]<<" ";
- out<<endl;
- }
- }
- int grad(int x)
- {
- int j,s=0;
- for(j=1;j<=n;j++)
- s=s+s[x][j];
- }
- int main()
- {
- int a[10][10],n,x,j;
- citire(a,n);
- afisare(a,n);
- out.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement