---
title: "What is three part of loop in programming language?"  
description: "What is three part of loop in programming language?"  
author: "Mukul Goenka"  
published: 2021-11-08  
updated: 2021-11-08  
canonical: https://www.mindstick.com/forum/156806/what-is-three-part-of-loop-in-programming-language  
category: "c#"  
tags: ["c#", ".net", "java"]  
reading_time: 1 minute  

---

# What is three part of loop in programming language?

What is three part of loop in [programming language](https://www.mindstick.com/articles/329035/5-most-in-demand-programming-languages-to-consider-for-your-app-development-in-2022)?

## Replies

### Reply by Mukul Goenka

Any type of programmers use loops in a [programming](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming) [language](https://www.mindstick.com/startup/28/preply-the-fast-growing-platform-transforming-language-learning). There are 3 types of loops in a programming language.

1. for loop
2. while loop
3. do-while

These three loops have 3 parts.

1. Initialization
2. condition
3. updation ( increment / decrement)

**1.) Initialization** In this section set the value for the loop start so that the loop can be started.

**2.) Condition** In this part after the loop starts, the value of the loop checks a condition repeatedly, if the condition is true then will access the further statement otherwise it will break out of the loop

**3.) Updation** in this part accesses the statement after checking the condition, then increases or decreases the value of the loop and after updating it checks again and again until the condition becomes false.

**Syntax.**

```
Initialization;while(condition) {
   statement(s);    updation;}
```

## Program

```
int n = 1; // Initializationwhile(n>=10){ // conditionConsole.WriteLine(n); n++; // updation}
```


---

Original Source: https://www.mindstick.com/forum/156806/what-is-three-part-of-loop-in-programming-language

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
