C# Continue Statement

continue-statements
In this chapter you will learn:

  • What is Continue statement in C#?
  • What is the benefit of using continue statement in C# programming?
  • How to use Continue statement in program?

The continue statements enables you to skip the loop and jump the loop to next iteration.

Example:





  • In this program, skips the loop until the current value of i reaches 6. Output is given below.

    Output

    6
    7
    8
    9
    10
    __

    Summary

    In this chapter you learned about continue statement in C#. In next chapter you will learn return statement in C#.


    Leave a Reply

    Your email address will not be published. Required fields are marked *