Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Control Instructions
Which of the following is the correct output for the C#.NET program given below? int i = 20 ; for( ; ; ) { Console.Write(i + " "); if (i >= -10) i -= 4; else break; }
20 16 12 84 0 -4 -8
20 16 12 8 4 0
20 16 12 8 4 0 -4 -8 -12
16 12 8 4 0
16 8 0 -8
Show Answer
Correct Answer:
20 16 12 8 4 0 -4 -8 -12
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment