Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <iostream>
- #include <math.h>
- #include <time.h>
- using namespace std;
- int rand (void);
- double floor (double x);
- int const N= 10;
- int main ()
- {
- int P[N],i,r;
- srand((unsigned)time(0));
- for(int i=0; i<N; i++)
- {
- P[i] = (rand()%N)+1;
- cout << P[i] << endl;
- }
- }
- //double algoritmus(int pole[],int delka)
- //{
- //
- //}
- //
- //int tisk(int pole[],int delka)
- //{
- //
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement