Advertisement
LukaszPanko

Zad 1

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