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 = 1, j; do { for (j = 1; ; j++) { if (j > 2) break; if (i == j) continue; Console.WriteLine(i + " " + j); } i++; } while (i < 3); Console.ReadLine(); }
More Computer Questions
What is a template?
The first microprocessor built by the Intel Corpn. was called
Which type of inheritance involves a class inheriting from multiple classes directly or indirectly in C++?
What is the full form of 'CC' with reference to composing an email?
What will be the output of the following Java code? class newthread extends Thread { Thread t1,t2; newthread() { t1 = new Thread(this,"Thread_1"); t2 = new Thread(this,"Thread_2"); t1.start(); t2.start(); } public void run() { t2.setPriority(Thread.MAX_PRIORITY); System.out.print(t1.equals(t2)); } } class multithreaded_programing { public static void main(String args[]) { new newthread(); } }