Advertisement
PiotrJurek

Zad5

Apr 17th, 2020
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int liczba;
  10. srand(time(NULL));
  11. do
  12. {
  13. liczba = rand()%2001-1000;
  14. cout << liczba << endl;
  15. }
  16. while(liczba<100 || liczba>200);
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement