daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.      int i , j, n;
  8.      char A[9][9];
  9.  
  10.       for(i=0; i<9; i++)
  11.         {
  12.         for(j=0; j<9; j++)
  13.             if(i+j<n+1 && i<j)
  14.  
  15.                A[i][j]='a';
  16.  
  17.             else
  18.  
  19.                A[i][j]='b';
  20.  
  21.                }
  22.  
  23.          cout<<"Matricea este:\n"<<endl;
  24.              for(i=0; i<9; i++)
  25.                 {
  26.                     for(j=0; j<9; j++)
  27.  
  28.                     cout<<A[i][j]<<" ";
  29.              cout<<endl;
  30.  
  31.              }
  32. return 0;
  33. }
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