---
title: "What is the difference between 'continue' and 'break' statement?"  
description: "What is the difference between 'continue' and 'break' statement?"  
author: "Om ji mishra"  
published: 2019-10-23  
updated: 2019-10-23  
canonical: https://www.mindstick.com/forum/135435/what-is-the-difference-between-continue-and-break-statement  
category: "c#"  
tags: ["c#", "programming language"]  
reading_time: 2 minutes  

---

# What is the difference between 'continue' and 'break' statement?

What is the [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between 'continue' and 'break' statement?

## Replies

### Reply by Om ji mishra

Here is some difference between 'break' and 'continue' - :

| **Break** | **Continue** |
| --- | --- |
| Where we apply the break condition, we come to the out of the loop. | That condition in which we use the continue statement, the controller checks all conditions except that condition. |
| This moves the controller to the end of the loop from where it is used. | This allows the controller to check all conditions except where the statement is used. |
| This is done to finish the loop quickly. | It is used to jump the condition. |
| This prevents the repetition of the loop. | This does not prevent the repetition of the loop |

```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BreakAndContinue
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            for (a = 1; a <= 10; a++)
            {
                if (a == 7)continue;
                Console.WriteLine(a);
            }
            Console.ReadKey();
        }
    }
}
```

```
output:-1234568910
```

```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BreakAndContinue
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            for (a = 1; a <= 10; a++)
            {
                if (a == 7)break;
                Console.WriteLine(a);
            }
            Console.ReadKey();
        }
    }
}
```

```
output:- 123456
```


---

Original Source: https://www.mindstick.com/forum/135435/what-is-the-difference-between-continue-and-break-statement

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
