Solved

# Division Help

Posted on 2004-08-27

I have got an integer array of size 100.

Example, store number 1234, I will store it in the integer array as

mynum[0] = 4;

mynum[1] = 3;

mynum[2] = 2;

mynum[3] = 1;

mynum[4] = 0;

mynum[5] = 0;

mynum[6] = 0;

...

mynum[99] = 0;

I have completed my addition, subtraction and multiplication functions whereby each accept 3 parameters of integer array each 100 size. The result of first_param <operator> second_param will be stored in the third_param. I am stucked in coming out an algorithm for the divison. The division function returns integer division and ignore the remainder.

Please help.