Select the correct option to test your answer:
Computer
Control Flow Statements In C Sharp
Difficulty: Medium
What will be the output of the following C# code? static void Main(string[] args) { int i, j; for (i = 2; i >= 0; i--) { for (j = 0; j <= 2; j++) { if (i == j) { Console.WriteLine("1"); } else { Console.WriteLine("0"); } } Console.WriteLine("\n"); Console.ReadLine(); } }
More Computer Questions
Which element represents an external resource?
Which header file is required to use tuples in your program?
Consider the following code snippet var sets = com . davidflanagan . collections . sets; What is the programmer trying to do in the above code snippet?
What's considered the 'backbone' of the World Wide Web?
To check whether string s1 contains another string s2, use . . . . . . . .