You are not logged in.
Pages: 1
Topic closed
Hey guys, I have another c related question for you guys. Im writing a program that does basic multiplication of two numbers. However, Im trying to make the output look like as if it were done by hand, the following is an example of this:
965
x 1728
----------
7720
+ 19300
+ 675500
+ 965000
----------
1667520
Can anyone get me in the right direction as far as the output goes? I know how to take in the 2 numbers and provide the product, but Im not sure how to get the the 7720, 19300, etc lines like it shows in the example. I appreciate all the help provided, thanks guys!
Offline
This sounds like homework.... it is policy to close it unless you can convince me otherwise.
(hint: integer division and modulus)
Offline
I was just thinking the same thing.
Go try yahoo answers. It's like a homework machine.
Offline
Yeah, I'm just going to go ahead and lock this. Allan's given a great hint.
Offline
Pages: 1
Topic closed