Vidyalelo
C# Programming · Q67

Control Flow Statements in C Sharp

Programming · C# Programming · question 67

Q67

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
Answer
C.
5 11 16 21 26 31 36 41 46 51
D.
5 30

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board