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