Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main()
- {
- int T[4][7];
- srand(time(NULL));
- for(int y=0;y<7;y++)
- {
- for (int x=0; x<4;x++)
- {
- T[y][x]=((rand()%40)+0)-20;
- }
- }
- for (int y=0;y<7;y++)
- {
- for(int x=0;x<4; x++)
- {
- cout<<T[y][x]<<setw(5);
- }
- cout<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement