MCQs>IT & Programming>C#>What will be the output of the given code snippet below? static void Main(string[] args) { int i = 15 ; for( ; ; ) { Console.Write(i + ' '); if (i >= -10) i -= 3; else break; } }
C# MCQs
What will be the output of the given code snippet below? static void Main(string[] args) { int i = 15 ; for( ; ; ) { Console.Write(i + " "); if (i >= -10) i -= 3; else break; } }
Answer
Correct Answer: 15 12 9 6 3 0 -3 -6 -9 -12
Explanation:
Note: This Question is unanswered, help us to find answer for this one