MarcinKrol

Zad 1 - Pseudolosowość

Apr 7th, 2020
35
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.  
  6. using namespace std;
  7.  
  8. // Zadanie 1; Pseudolosowosc
  9.  
  10.  
  11. int main()
  12. {
  13. srand(time(NULL));
  14.  
  15. for(int i=1; i<=3; i++)
  16. {
  17.  
  18. cout << rand()%10 << endl;
  19.  
  20. }
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment