Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <iostream>
  3. #include <math.h>
  4. #include <time.h>
  5.  
  6. using namespace std;
  7.  
  8. int rand (void);
  9. double floor (double x);
  10. int const N= 10;
  11. int main ()
  12. {
  13.     int P[N],i,r;
  14.     srand((unsigned)time(0));
  15.    
  16.    
  17.     for(int i=0; i<N; i++)
  18.     {  
  19.     P[i] = (rand()%N)+1;
  20.     cout << P[i] << endl;
  21.     }
  22.  
  23. }
  24.  
  25. //double algoritmus(int pole[],int delka)
  26. //{
  27. //
  28. //}
  29. //
  30. //int tisk(int pole[],int delka)
  31. //{
  32. //
  33. //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement