Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- #include <math.h>
- using namespace std;
- int A[10];
- int B[10];
- int C[10];
- int main(){
- srand(time(NULL));
- int maks;
- cout << "podaj maksymalna wartosc:";
- cin >> maks;
- for (int i = 0; i < 10; i++){
- A[i] = rand()%maks;
- B[i] = rand()%maks;
- }
- for (int i = 0; i < 10; i++) C[i] = A[i] + B[i];
- }
Advertisement
Add Comment
Please, Sign In to add comment