Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int tablica[50];
- int tablica1[50];
- srand(time(NULL));
- for(int i = 0; i<50; i++){
- tablica[i] = rand()%11+10;
- tablica1[i] = rand()%5+1;
- cout << tablica[i] << endl;
- }
- cout << "" << endl;
- for(int i=0; i<50; i++){
- cout << tablica1[i] << endl;
- }
- int xx = 0;
- int yy = 0;
- int wynik1 = 1;
- for(int i=0; i<50; i++){
- xx=tablica[i];
- yy=tablica1[i];
- wynik1 = 1;
- for(int j=0; j<yy; j++){
- wynik1 = wynik1 * xx;
- }
- cout << xx << " do " << yy << " = " << wynik1 << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement