Home / C# Programming / Control Instructions - c# :: Discussion

Discussion :: Control Instructions - c#

  1. What will be the output of the code snippet given below?

     int i;
     for(i = 0; i10; i++) 
     {   
         if(i == 4)     
         {        
             Console.Write(i + " "); continue;     
         }    
         else if (i != 4)       
             Console.Write(i + " "); else 
         break; 
    }
    

  2. A.

    1 2 3 4 5 6 7 8 9 10

    B.

    1 2 3 4

    C.

    0 1 2 3 4 5 6 7 8 9 10

    D.

    4 5 6 7 8 9 10

    E.

    4

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment