adplus-dvertising
frame-decoration

Question

Select the output for the following code :
static void Main(string[] args)
{
    int i = 1, j = 5;
    do
    {
        Console.WriteLine(i = i++ * j);
    }while (i <= 10);
    Console.ReadLine();
}

a.

5 10 15 20 25 30 35 40 45 50

b.

5 25

c.

5 11 16 21 26 31 36 41 46 51

d.

5 30

Posted under C# programming

Answer: (b).5 25

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Select the output for the following code :