daily pastebin goal
64%
SHARE
TWEET

V

a guest Jan 24th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main(int argc, char** argv)
  2. {
  3.  int **A, **B, **C;
  4.  int JlhBrs, JlhKlm, brs, klm;
  5.  
  6.  randomize();
  7.  printf("insert total line: "); scanf("%i", &Jlhbaris);
  8.  printf("insert total row: "); scanf("%i", &Jlhklm);
  9.  
  10.  A=new int*[JlhBrs];
  11.  B=new int*[JlhBrs];
  12.  C=new int*[JlhBrs];
  13.  
  14.  for (brs=0; brs<JlhBrs; brs++) {
  15.     A[brs]=new int[JlhKlm];
  16.     B[brs]=new int[JlhKlm];
  17.     C[brs]=new int[JlhKlm];
  18.  }
  19.  
  20.  printf("Matrik A:\n");
  21.  for (brs=0; brs<JlhBrs; brs++) {
  22.     for(klm=0; klm<JlhKlm; klm++ ) {
  23.         A[brs][klm]=random(100);
  24.         printf("%2i", A[brs][klm]);
  25.     }
  26.     printf("\n")
  27.  }
  28.  getch();
  29.     return 0;
  30. }
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