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 is the benefit of interface in c#?
What are mutable and immutable types in c#?
Can I use exceptions in c#?
How do you create empty strings in c#?
What is monitor in C#?
Why do we need constructors?
How to sign an assembly with strong name?
What is dictionary collection in c#?
Explain About .NET Remoting and types of remoting
What is sqlcommandbuilder c#?
what is collections in .net? why we use?
Does c# replace c++?
Which language is used for desktop application?
Can we create extension method for interface?
What is difference between ienumerable and ienumerator in c#?