Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <time.h>
- #include <cstdlib>
- #include <windows.h>
- using namespace std;
- int main()
- {
- srand(time(NULL));
- int t[10][10], x=0, y=0, i=0, j=0;
- int losowanko = rand()%100+1;
- for(x=0;x<10;x++)
- {
- for(y=0;y<10;y++)
- {
- if(y==0)
- {
- t[x][y]=1;
- }
- else t[x][y]=0;
- }
- cout<<endl;
- }
- for(i=0;i<10;i++)
- {
- for(j=0;j<10;j++)
- {
- cout<<t[i][j]<<" ";
- }
- cout<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement