Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main()
- {
- int liczba;
- srand(time(NULL));
- do
- {
- liczba = rand()%2001-1000;
- cout << liczba << endl;
- }
- while(liczba<100 || liczba>200);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement