- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
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;

1.20 16 12 84 0 -4 -8

2.20 16 12 8 4 0

3.20 16 12 8 4 0 -4 -8 -12

4.16 12 8 4 0

Posted Date:-2021-02-20 14:28:12


More MCQS Questions and answers

Search