Question: Which of the following is the correct way to rewrite the following C#.NET code snippet given below?
Options
A : int i = 0 ; do { Console.WriteLine(i); } until (i <= 10 );
B : int i; for (i = 0 ; i <= 10 ; i++) Console.WriteLine(i);
C : int i = 0 ; while (i <= 11 ) { Console.WriteLine(i); i += 1 ; }
D : int i = 0 ; do while ( i <= 10 ) { Console.WriteLine(i); i += 1 ; }
Control Instructions - General Questions more questions
What will be the output of the C#.NET code snippet....
What does the following C#.NET code snippet will print?
Which of the following is the correct output for the....
Which of the following statements is correct?
What is the output of the C#.NET code snippet given....
What will be the output of the C#.NET code snippet....
What will be the output of the C#.NET code snippet....
Which of the following is the incorrect form of Decision....
Which of the following code snippets are the correct way....
Which of the following can be used to terminate a....
Arrays - General Questions more Online Exam Quiz
References - General Questions
Complicated Declarations - General Questions