Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void mult(int a[], int b[], int c[], int d[], int index, int index2)
- {
- for (int j = 0; j < index2; j++)
- {
- int z = 0;
- for (int i = 0; i <= (index); i++)
- {
- c[i] = (a[i] * b[j]) + z;
- if (c[i] > 9)
- {
- z = (c[i] / 10);
- c[i] = (c[i] % 10);
- }
- else
- {
- z = 0;
- }
- }
- madd(d, c);
- }
- }
Add Comment
Please, Sign In to add comment