Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void divide(int a[], int x)
- {
- int cobor = 0, q = 0;
- for (int i = a[0]; i; i--)
- {
- cobor = cobor * 10 + a[i];
- q = cobor / x;
- a[i] = q;
- cobor -= q * x;
- }
- while (!a[a[0]])
- {
- a[0]--;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement