I will try to answer without giving away a lot of code ...
1) Use String to store the product
2) Perform a long multiplication (as in school)
Prod = "1" for n = 1 to 1000 carry = 0 newprod = "" for i = strlen(prod) - 1 to 0 step - 1 digit = int(prod[i]) p = digit * 2 + carry newprod = (p % 10) & newprod // append carry = p / 10 next if( carry > 0) newprod = carry & newprod prod = newprod next
print prod
Notepad coding is here ... so if anyone finds errors, fix them.
st0le
source share