Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int summa(int x[], int y[], int nRow)
- {
- int *sum = new int[nRow];
- for (int i=0; i<nRow; i++)
- sum[i]=x[i]+y[i];
- for (int i=0; i<nRow; i++)
- return sum[i];
- }
- int dobutok(int x[], int y[], int nRow)
- {
- int *dob = new int[nRow];
- for (int i=0; i<nRow; i++)
- dob[i]=x[i]*y[i];
- for (int i=0; i<nRow; i++)
- return dob[i];
- }
Add Comment
Please, Sign In to add comment