Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <ctime>
  3. #include <cstdlib>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. srand( time( NULL ) );
  9. int tablica[ 6];
  10. for( int i = 0; i <6; i++ )
  11. {
  12. tablica[ i ] = rand() % 36;
  13. cout << "Wylosowana liczba:" << endl ; cout << tablica[ i ] << endl;
  14.  
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement