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