i need to multiply each number from input file;
i already got each digit of the number doing this
EACH_DIGIT=N%10;
N/=10;
but i cant seem to get M EACH_DIGIT multiply each digit to the multiplicand;
input file looks like:
78*77
and output should look like you doing multiplication on paper or by hand:
78
*77
----
546
546
-----
6006
it only reads first digit if I move EACH_DIGIT outside the do while loop;
and if I put the for loop inside the do while loop it does not seem to work well;