Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int a,b,c;
- int main()
- {
- a=0;
- b=30;
- c=40; //od 30 do 40
- while(a<5)
- {
- cout<< b+rand()%(c-b)<<" "; // losowe liczby i spacja
- a++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement