Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int imparte(int a[], int x, int rezultat[])
- {
- int i, r = 0;
- for (i = a[0]; i; i--)
- {
- r = 10 * r + a[i];
- rezultat[i] = r / x;
- r %= x;
- }
- rezultat[0] = a[0];
- while (!rezultat[rezultat[0]] && rezultat[0] > 1)
- rezultat[0]--;
- return r;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement