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