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(0));
- int i;
- do
- {
- i=-1000+rand()%2001; //%2001 no bo 1000-(-1000) + 1 tak jak w poprzednich zadaniach
- cout<<i<<endl;
- }
- while(i<100||i>200);
- return 0;
- }
- //raz wyswietla tylko 2 liczby, a czasami nawet 15 :D
Add Comment
Please, Sign In to add comment