= -10)  i -= 4;else break; }"/>
Home / C# Programming / Control Instructions - c# :: Discussion

Discussion :: Control Instructions - c#

  1. 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; 
    }
    

  2. A.

    20 16 12 84 0 -4 -8

    B.

    20 16 12 8 4 0

    C.

    20 16 12 8 4 0 -4 -8 -12

    D.

    16 12 8 4 0

    E.

    16 8 0 -8

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment