Answer Posted / ramya
The continue statement passes control to the next iteration
of the enclosing iteration statement in which it appears
using System;
class ContinueTest
{
public static void Main()
{
for (int i = 1; i <= 10; i++)
{
if (i < 9)
continue;
Console.WriteLine(i);
}
}
}
o/p:
9
10
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does clr stand for?
What is strong name in c# and how can we use it?
What are actions in c#?
Is there a way of specifying which block or loop to break out of when working with nested loops?
How can I get around scope problems in a try/catch?
What is difference between var dynamic and object in c#?
Howmany five tracing levels in System.Diagnostics.TraceSwitcher? Why they are using?
How do I link two windows forms in c#?
How do I enforce const correctness in c#?
What is use of private class in c#?
4. Describe the process when we send a request URL? And who is responsible for that?
Contrast between an interface and abstract class?
What is the purpose of dictionary in c#?
How to Install uninstall assemblies into GAC?
What is c# and why it is used for?