MarcinKrol

Zad 2 - Pseudolosowość

Apr 7th, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <time.h>
  3. #include <cstdlib>
  4.  
  5. using namespace std;
  6.  
  7. //Zad 2; Pseudolosowosc
  8.  
  9.  
  10. int main()
  11. {
  12. srand(time(NULL));
  13.  
  14. for(int i=1; i<=5; i++)
  15. {
  16.  
  17. cout << rand()%11+30 <<", ";
  18.  
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment