Home » C# Programming » Control Instructions

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);

Correct Answer: int i; for (i = 0; i <= 10 ; i++) Console.WriteLine(i);

← Previous Question Next Question→

More Questions from Control Instructions

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion