JakubJaneczek

Zadanie 1

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