---
title: "What are statements?"  
description: "What are statements?"  
author: "zack mathews"  
published: 2017-11-13  
canonical: https://answers.mindstick.com/qa/30460/what-are-statements  
category: "programming"  
tags: ["software"]  
reading_time: 1 minute  

---

# What are statements?

What are statements?

## Answers

### Answer by Arti Mishra

**“Statement”** In term of programming language, the **statement is a command** that the programmer has given to the computer system for performing the specific action. A Computer **program is the collection of statements.** \
**"Flowchart of Statement"**\
![What are statements?](https://answers.mindstick.com/questionanswer/8897ccba-dfa5-431f-97dc-6e58117bc89b/images/44efc136-e4b7-4c81-90bc-4a51c58f41ac.png)**Types of Statement**

1. Simple Statement
2. Compound statement

**Simple Statement**

1. assignment (=)
2. goto
3. return

\
**Compound Statement** **if-statement:** if(condition){…..} else {…..} **switch-statement:** switch (c) { case 'a': alert(); break; case 'q': quit(); break; } **Looping Statement** **do-while loop** Syntax :- do { ……….. ………..} while (condition); **for-loop:** for(initialization, condition, inc/dec) { ……… ……… } \


---

Original Source: https://answers.mindstick.com/qa/30460/what-are-statements

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
