Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SUMA (VTC100I a, VTC100I b, VTC100I c)
- {
- A_ZERO(c);
- int q,r;
- for (int x=99; x>=2; x--)
- {
- c[x] = a[x] + b[x];
- if (c[x] >= 10)
- {
- DIVIDIR(c[x],10,q,r);
- c[x] = r;
- a[x-1] = a[x-1] + q;
- }
- }
- COMPTA_XIFRES(c, c[1]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement