Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. void SUMA (VTC100I a, VTC100I b, VTC100I c)
  2. {
  3. A_ZERO(c);
  4. int q,r;
  5. for (int x=99; x>=2; x--)
  6. {
  7. c[x] = a[x] + b[x];
  8. if (c[x] >= 10)
  9. {
  10. DIVIDIR(c[x],10,q,r);
  11. c[x] = r;
  12. a[x-1] = a[x-1] + q;
  13. }
  14. }
  15. COMPTA_XIFRES(c, c[1]);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement