Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <time.h>
- using namespace std;
- void losowanie4(){
- int x;
- srand(time(NULL));
- for(int i=1; i<=100; i++){
- x=rand()%2001-1000;
- if(x>=100 && x<=200){
- break;
- }
- else{
- cout<<x<<endl;
- }
- }
- }
- int main()
- {
- losowanie4();
- return 0;
- }
Add Comment
Please, Sign In to add comment