Started Documenting Easy Programming Problems

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.

Mario

Multiply Without Using *

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.

        /// <summary>
        /// Multiplies withou using Multiply
        /// </summary>
        /// <param name="a">first number</param>
        /// <param name="b">second number</param>
        /// <returns>multiply</returns>
        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
            }
            return total;
        }

As I said is not the most efficient maybe research on what I wold you.

Thanks
Mario