Which of the following is the correct way to rewrite the following C#.NET code snippet given below?
int i = 0; do{ Console.WriteLine(i); i+ = 1; } while (i <= 10);
Answer: Option B
Explanation: