salasi |
01-29-2009 05:25 PM |
...and I'll also point out that you don't actually ask a question. But ignoring that...
Quote:
i need to write a function for multiplication of two int variables with help of sumtotal(not really shure about the word but you know 1+1 ) , without the use od division(/) or multiplication(*)
|
The important question here is whether, ignoring the fact that you are using a computer, can you work out a process (algprithm, if you want to be technical) to produce the effect of multiplication with actual multiplication? If you can't, you need to think about what multiplication is. Maybe consider what 'doubling' (multiplication by two) does. Can you generalise that so that you can multiply by other numbers?
If that doesn't work, books are good too. Unless you solve that, whatever you do with the computer won't help you much.
|