Select The Output For The Following Set Of Code P Pre #159
Select the output for the following set of code :</p> <pre><code class="language-csharp" line="1"> static void Main(string[] args) { int a = 0; int i = 0; int b; for (i = 0; i < 5; i++) { a++; Console.WriteLine("Hello \n"); continue; } Console.ReadLine(); } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Looping Statements - Continue, Goto statements - Quiz No.1.
Select the output for the following set of code :
static void Main(string[] args) { int a = 0; int i = 0; int b; for (i = 0; i < 5; i++) { a++; Console.WriteLine("Hello \n"); continue; } Console.ReadLine(); }
print hello 4 times
print hello 3 times
print hello 5 times
print hello infinite times