SHARE
TWEET

mag

a guest Nov 13th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4. int M[10][10], n, x, V[10];
  5. ifstream f("MATRICE.in");
  6. ofstream g ("MATRICE.out");
  7.  
  8. void citirematrice ()
  9. {
  10.     int i, j;
  11.     cout << "Nr linii si coloane:";
  12.     f >> n;
  13.     for (i=1;i<=n;i++)
  14.     for (j=1;j<=n;j++)
  15.     {
  16.         cout << "M[" << i  << "][" << j << "]=";
  17.         f>> M[i][j];
  18.     }
  19. }
  20. void afisarematrice ()
  21. {
  22. int i, j;
  23. for (i=1;i<=n;i++)
  24. {
  25.     for (j=1;j<=n;j++)
  26.     cout << M[i][j] << "";
  27.     cout << endl;
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top