Examveda

What will be the output of the following C# 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

Answer: Option B


Join The Discussion

Related Questions on Control Flow Statements in C Sharp