C# - continue Statement Last Updated : 14 Oct, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In C#, the continue statement is used to skip over the execution part of the loop(do, while, for, or foreach) on a certain condition, after that, it transfers the control to the beginning of the loop. Basically, it skips its given statements and continues with the next iteration of the loop. Or in other words, the continue statement is used to transfer control to the next iteration of the enclosing statement(while, do, for, or foreach) in which it appears. Syntax: continue; Flow Chart: Example 1: C# // C# program to illustrate the use // of continue statement in for loop using System; class GFG{ static public void Main () { // Here, in this for loop start from 2 to 12, // due to the continue statement, when x = 8 // it skip the further execution of the statements // and transfer the controls back to the // next iteration of the for loop for(int x = 2; x <= 12; x++) { if (x == 8) { continue; } Console.WriteLine(x); } } } Output: 2 3 4 5 6 7 9 10 11 12 Example 2: C# // C# program to illustrate the use // of continue statement in while loop using System; class GFG{ static public void Main () { int x = 0; // Here, using continue statement // whenever the value of x<2, it // skips the further execution of the // statements and the control transfer // to the next iteration of while loop while (x < 8) { x++; if (x < 2) continue; Console.WriteLine(x); } } } Output: 2 3 4 5 6 7 8 Comment More infoAdvertise with us Next Article C# - continue Statement A ankita_saini Follow Improve Article Tags : C# CSharp-ControlFlow Similar Reads C# Jump Statements (Break, Continue, Goto, Return and Throw) In C#, Jump statements are used to transfer control from one point to another point in the program due to some specified code while executing the program. In, this article, we will learn to different jump statements available to work in C#.Types of Jump StatementsThere are mainly five keywords in th 4 min read C# - Infinite Loop Infinite Loop is a loop that never terminates or ends and repeats indefinitely. Or in other words, an infinite loop is a loop in which the test condition does not evaluate to false and the loop continues forever until an external force is used to end it. You can create an infinite loop: Using for lo 2 min read Continue Statement in C The continue statement in C is a jump statement used to skip the current iteration of a loop and continue with the next iteration. It is used inside loops (for, while, or do-while) along with the conditional statements to bypass the remaining statements in the current iteration and move on to the ne 4 min read AKTU 1st Year Sem 1 Solved Paper 2017-18 | COMP. SYSTEM & C PROGRAMMING | Sec A Paper download link: Paper | Sem 1 | 2017-18 B.Tech. (SEM-I) THEORY EXAMINATION 2017-18 COMPUTER SYSTEM & PROGRAMMING IN C Time: 3hrs Total Marks: 100 Note:- There are three sections. Section A carries 20 marks, Section B carries 30 marks and Section C carries 50 marks.Attempt all questions. Mar 6 min read Jump Statements in C In C, jump statements are used to jump from one part of the code to another altering the normal flow of the program. They are used to transfer the program control to somewhere else in the program. In this article, we will discuss the jump statements in C and how to use them. Types of Jump Statements 5 min read Like