Continue statement in C#
In this article I will explain how to use continue statement in C#.
The continue statement is used to transfer the control to the next iteration of the enclosing iteration statement in which it appears. It jumps immediately to the next iteration in the loop. This keyword is most useful in while-loops. The form of continue statement is following
static void Main(string args)
int i = 0;
while (i < 20)
if (i < 11)
The output of following program