JakubJaneczek

Zadanie 2

Apr 30th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5. int a,b,c;
  6.  
  7.  
  8.  
  9. int main()
  10. {
  11.     a=0;
  12.     b=25;
  13.     c=75
  14.     ;
  15.     while(a<5)
  16.     {
  17.         cout<< b+rand()%(c-b)<<" ";
  18.         a++;
  19.     }
  20.     return 0;
  21. }
Add Comment
Please, Sign In to add comment