SHARE
TWEET

Untitled

a guest Nov 14th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "pt4.h"
  2. using namespace std;
  3.  
  4. void Solve()
  5. {
  6.     Task("DArray5");
  7.     int qe,g, mass, i,j,N,M,a[20][20];
  8. pt>>N;
  9. M = 0;
  10. g = 1;
  11. qe = 0;
  12. for (i=0; i<N; i++)
  13. for (j=0; j<N; j++)
  14.     pt>>a[i][j];
  15.  
  16.  
  17. for (mass = 0; mass < N-1; mass++)
  18.    {
  19.     qe+=1;
  20.     g = qe;
  21.     for (i=g; i<N; i++)
  22.     {
  23.     a[i][mass] = 0;
  24.  
  25.     }
  26.     }
  27.  
  28.  
  29. for (i=0; i<N; i++)
  30. for (j=0; j<N; j++)
  31.     pt<<a[i][j];
  32. }
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
 
Top