C# Continue keyword Tutorial with Examples

C# Continue keyword Tutorial with Examples

Today, We want to share with you C# Continue keyword Tutorial with Examples.
In this post we will show you Continue keyword in C#.Net, hear for Jump statements in C# we will give you demo and example for implement.
In this post, we will learn about Break and Continue Statements in C# with an example.

Continue keyword in C#.Net

In this post,we will learn about Continue keyword in C#.Net with an example.

My Infinity-know Knowledgeable Ideas, Tips and Tricks, Useful Content, Jobs, Technology, Earn Money, gmail creation, skype, yahoo and more useful things.

Now in this post, I will explain about how to get Continue keyword in C#.Net with appropriate example. By using continue statement, you can ‘jump over one iteration’ and then resume your loop execution.

READ :  The Future of AngularJS Framework

Now create Console Application in Visual Studio and write below lines of code in it.

using System;  
using System.Collections;  
using System.Linq;  
using System.Text;  
  
namespace ConsoleDemp   
    {  
        Class Program {  
            public static void main(String[] args) {  
                for (int i = 0; i <= 5; i++) {  
                    if (i == 4) {  
                        break;  
                    }  
                    Console.WriteLine("The number is " + i);  
                    Console.ReadLine();
  
                }  
            }  
        }  
  
    } 

Output of above code is,
 
The number is 0;
The number is 1;
The number is 2;
The number is 3;

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about C# Continue Statement with Examples.
I would like to have feedback on my Infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

READ :  How to send WhatsApp Messages from PHP

Add a Comment

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