Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int i , j, n;
- char A[9][9];
- for(i=0; i<9; i++)
- {
- for(j=0; j<9; j++)
- if(i+j<n+1 && i<j)
- A[i][j]='a';
- else
- A[i][j]='b';
- }
- cout<<"Matricea este:\n"<<endl;
- for(i=0; i<9; i++)
- {
- for(j=0; j<9; j++)
- cout<<A[i][j]<<" ";
- cout<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement