Content deleted Content added
changed the pseudocode in Long multiplication to be is similar format. Also removed unnessesary section heading that was for pseudocode |
|||
Line 61:
carry = 0
for a_i = 1 to p //for all digits in a
product[a_i + b_i - 1] += carry + a[
carry = product[ai + bi - 1] / base
product[a_i + b_i - 1] = product[
product[b_i + p] += carry // last digit comes from final carry
return product
|