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