Question: Given the following C# code, what value of j will be written to the console? int j =0; do if (j==0) 1-2; else j+=3;
Given the following C# code, what value of j will be written to the console? int j =0; do if (j==0) 1-2; else j+=3; } while (j < 0); Console.WriteLine(j);
Step by Step Solution
There are 3 Steps involved in it
Heres the corrected version of the code int j 0 do if j 0 j 2 else j 3 while j 0 Conso... View full answer
Get step-by-step solutions from verified subject matter experts
