I just started documenting easy problems, not sure if I want to create a post for every problem, I guess is a good idea to gain visibility as far as SEO, you will probably see more post on those easy problems in a separated blog post, as well as videos, every video that I create will have a blog post I guess to also help SEO.
So that is all for this, you will see problems in different blog post. These easy programming problems are intended to recap on what I already know about programming and catch up in something that might be missing.
I came out with this C# algorithm to solve this problem, I did a research and found a better solution named Russian Peasant please research for that, I this code I will do by sum number a and accumulate the sum b times.
/// Multiplies withou using Multiply
/// <param name="a">first number</param>
/// <param name="b">second number</param>
private static int Multiply(int a, int b)
int total = 0; // sum
for (int i = 1; i <= b; i++)
total += a; // sum number a as many timeas as b
As I said is not the most efficient maybe research on what I wold you.