Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4. istream ("as.txt")
  5. int main()
  6. {
  7. int n,m,i,j,v[101][101];
  8. cout<<"Afisare numar de linii si coloane";
  9. cin>>n>>m;
  10. cout<<"elemente matrice";
  11. for(i=1;i<=m;i++)
  12. for(j=1;j<=m;j++)
  13. cin>>v[i][j];
  14. cout<<"matrice:";
  15. for(i=1;i<=m;i++)
  16. for(j=1;j<=m;j++)
  17. cout<<v[i][j];
  18. cout<<endl;
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement