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

Question:
What will be the output of the code snippet given below?int i;
for(i = 0; i<=10; i++)
{
    if(i == 4)
    {
        Console.Write(i + " "); continue;
    }
    else if (i != 4)
        Console.Write(i + " "); else
    break;
}

1. 1 2 3 4 5 6 7 8 9 10

2.1 2 3 4

3.0 1 2 3 4 5 6 7 8 9 10

4.4 5 6 7 8 9 10

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


More MCQS Questions and answers

Search