Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a,z=0;
- int main()
- {
- int tab[a][a];
- cout << "Podaj wielkosc tablicy: " << endl;
- cin >> a;
- for(int i=0;i<a;i++){
- for(int j=0;j<a;j++){
- if(z==j){
- cout << "0";
- }
- else{
- cout << "1";
- }
- }
- z=z+1;
- cout<<endl;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment