Guest User

Untitled

a guest
Oct 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. void mult(int a[], int b[], int c[], int d[], int index, int index2)
  2. {
  3. for (int j = 0; j < index2; j++)
  4. {
  5. int z = 0;
  6. for (int i = 0; i <= (index); i++)
  7. {
  8. c[i] = (a[i] * b[j]) + z;
  9. if (c[i] > 9)
  10. {
  11. z = (c[i] / 10);
  12. c[i] = (c[i] % 10);
  13. }
  14. else
  15. {
  16. z = 0;
  17. }
  18. }
  19. madd(d, c);
  20.  
  21. }
  22. }
Add Comment
Please, Sign In to add comment