Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <time.h>
- #include <cstdlib>
- using namespace std;
- //Zad 5; Pseudolosowosc
- int main()
- {
- int i;
- srand(time(NULL));
- for(;;)
- {
- i = rand()%2001-1000;
- cout << i <<", ";
- if(i<201 && i>99)
- {
- return 0;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment