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=25;
- c=75
- ;
- while(a<5)
- {
- cout<< b+rand()%(c-b)<<" ";
- a++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment