JakubKaczmarek_123

zadanie 5

Feb 12th, 2021
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5.  
  6. int main(){
  7. srand(time(NULL));
  8. int k = 10000;
  9. while (k < 100 || k > 200){
  10.     k = rand()%2001-1000;
  11. cout << k << endl;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment