Advertisement
Lukasz_Miskiewicz

s2 zadanie 2

Apr 17th, 2020
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5. int a,b,c;
  6.  
  7. int main()
  8. {
  9. a=0;
  10. b=30;
  11. c=40; //od 30 do 40
  12. while(a<5)
  13. {
  14. cout<< b+rand()%(c-b)<<" "; // losowe liczby i spacja
  15. a++;
  16. }
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement