Programming Languages
C#
Objective
Mar 08, 2013
What will be the output of the code 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;
}
Detailed Explanation
Option C is the right answer.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts