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