Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <ctime>
- #include <iostream>
- using namespace std;
- const int NB_PINS=100*1000, SIZE_PIN=1000;
- int main(void)
- {
- srand(time(NULL));
- cout << NB_PINS << " " << SIZE_PIN << "\n";
- for(int pin=0; pin<NB_PINS; pin++)
- {
- for(int elem=0; elem<SIZE_PIN; elem++)
- cout << ((rand()%10 == 0) ? 'o' : ' ');
- cout << "\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement