SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
PREPARED BY:-
NITIN KUMAR
Control Structures
 Control structures are used to affect how statements
are executed.
 Sequence structure (Straight line)
 Selection structure (Branching)
 Loop structure (Iteration or repetition)
Sequence Structure
 Statements are executed one after the other.
 This is C++'s default behavior!
Selection Structure
 Used to choose among alternative courses of action.
 Making decisions
•If
•if/else
•switch
If selection structure
 Used to do something if some condition is “true”.
If/else selection structure
 Used to do one thing if some condition is “true”,
something else if the condition is “false”.
Switch Selection structure
 This is a multiple-Branching Statement where based
on a condition the control is transferred to one of the
many possible points.
Loop structure
 Used to repeat a set of instructions.
 Looping
•Do-While
•While
•For
Do-While Loop structure
 The do-while is an exit-controlled loop . based on a
condition the control is transferred back to a particular
point in the program.
While Loop structure
 The while loop is an entry-controlled loop .
For Loop structure
 The For is an entry-controlled loop and is used when
an action is to be repeated for a predetermined
number of times.
THANK YOU

More Related Content

PPTX
Introduction to Geoinformatics
KU Leuven
 
PDF
JavaScript - Chapter 8 - Objects
WebStackAcademy
 
PPTX
Strings in c++
Neeru Mittal
 
PPTX
Structures in c language
Tanmay Modi
 
PPTX
Features image processing and Extaction
Ali A Jalil
 
PPTX
Linear programming
Karnav Rana
 
PPTX
How to fine-tune and develop your own large language model.pptx
Knoldus Inc.
 
PPT
Swing and AWT in java
Adil Mehmoood
 
Introduction to Geoinformatics
KU Leuven
 
JavaScript - Chapter 8 - Objects
WebStackAcademy
 
Strings in c++
Neeru Mittal
 
Structures in c language
Tanmay Modi
 
Features image processing and Extaction
Ali A Jalil
 
Linear programming
Karnav Rana
 
How to fine-tune and develop your own large language model.pptx
Knoldus Inc.
 
Swing and AWT in java
Adil Mehmoood
 

What's hot (20)

PPT
Control structure C++
Anil Kumar
 
PPTX
Exception handling c++
Jayant Dalvi
 
PPTX
Control statements in c
Sathish Narayanan
 
PPTX
Constants, Variables, and Data Types
Rokonuzzaman Rony
 
PPTX
control statements in python.pptx
Anshu Varma
 
PPTX
Control structures in java
VINOTH R
 
PPTX
Nesting of if else statement & Else If Ladder
Vishvesh Jasani
 
PPT
Looping statements in Java
Jin Castor
 
PPTX
Operators and expressions in c language
tanmaymodi4
 
PPT
Control structures in C++ Programming Language
Ahmad Idrees
 
PPTX
Operators in java presentation
kunal kishore
 
PPTX
Presentation on C Switch Case Statements
Dipesh Panday
 
PPTX
While , For , Do-While Loop
Abhishek Choksi
 
PDF
10. switch case
Way2itech
 
PPTX
Operators and expressions in C++
Neeru Mittal
 
PPTX
Decision making and branching in c programming
Priyansh Thakar
 
PPTX
Operators and expressions
vishaljot_kaur
 
PPTX
Java Tokens
Madishetty Prathibha
 
PPTX
C Programming: Control Structure
Sokngim Sa
 
PPTX
classes and objects in C++
HalaiHansaika
 
Control structure C++
Anil Kumar
 
Exception handling c++
Jayant Dalvi
 
Control statements in c
Sathish Narayanan
 
Constants, Variables, and Data Types
Rokonuzzaman Rony
 
control statements in python.pptx
Anshu Varma
 
Control structures in java
VINOTH R
 
Nesting of if else statement & Else If Ladder
Vishvesh Jasani
 
Looping statements in Java
Jin Castor
 
Operators and expressions in c language
tanmaymodi4
 
Control structures in C++ Programming Language
Ahmad Idrees
 
Operators in java presentation
kunal kishore
 
Presentation on C Switch Case Statements
Dipesh Panday
 
While , For , Do-While Loop
Abhishek Choksi
 
10. switch case
Way2itech
 
Operators and expressions in C++
Neeru Mittal
 
Decision making and branching in c programming
Priyansh Thakar
 
Operators and expressions
vishaljot_kaur
 
C Programming: Control Structure
Sokngim Sa
 
classes and objects in C++
HalaiHansaika
 
Ad

Viewers also liked (20)

PPT
C++ OOP Implementation
Fridz Felisco
 
PPT
The Three Basic Selection Structures in C++ Programming Concepts
Tech
 
PPTX
Overview- Skillwise Consulting
Skillwise Group
 
PDF
C++ Programming : Learn OOP in C++
richards9696
 
PPSX
Support for Object-Oriented Programming (OOP) in C++
Ameen Sha'arawi
 
PPTX
#OOP_D_ITS - 6th - C++ Oop Inheritance
Hadziq Fabroyir
 
PPTX
Pipe & its wall thickness calculation
sandeepkrish2712
 
PPT
C++ control loops
pratikborsadiya
 
PDF
Valve selections
Sandip Sonawane
 
PDF
Implementation of oop concept in c++
Swarup Kumar Boro
 
PPTX
Learn c++ Programming Language
Steve Johnson
 
PPT
Kuliah1 Struktur Data V1.0
Zidny Nafan
 
PPTX
Object Oriented Programming Using C++
Muhammad Waqas
 
PPT
Valve Selection & Sizing
Ranjeet Kumar
 
PPT
9781285852744 ppt ch12
Terry Yoast
 
PPT
C++ Interview Questions
Kaushik Raghupathi
 
PDF
Fundamentals of Data Structures in C++ - Ellis Horowitz, Sartaj Sahni
Munawar Ahmed
 
PPTX
Loops c++
Shivani Singh
 
C++ OOP Implementation
Fridz Felisco
 
The Three Basic Selection Structures in C++ Programming Concepts
Tech
 
Overview- Skillwise Consulting
Skillwise Group
 
C++ Programming : Learn OOP in C++
richards9696
 
Support for Object-Oriented Programming (OOP) in C++
Ameen Sha'arawi
 
#OOP_D_ITS - 6th - C++ Oop Inheritance
Hadziq Fabroyir
 
Pipe & its wall thickness calculation
sandeepkrish2712
 
C++ control loops
pratikborsadiya
 
Valve selections
Sandip Sonawane
 
Implementation of oop concept in c++
Swarup Kumar Boro
 
Learn c++ Programming Language
Steve Johnson
 
Kuliah1 Struktur Data V1.0
Zidny Nafan
 
Object Oriented Programming Using C++
Muhammad Waqas
 
Valve Selection & Sizing
Ranjeet Kumar
 
9781285852744 ppt ch12
Terry Yoast
 
C++ Interview Questions
Kaushik Raghupathi
 
Fundamentals of Data Structures in C++ - Ellis Horowitz, Sartaj Sahni
Munawar Ahmed
 
Loops c++
Shivani Singh
 
Ad

Similar to Control structures in c++ (20)

PPTX
Programming Fundamentals in C++ structures
ayshasafdarwaada
 
PPT
Control structure
Samsil Arefin
 
PPTX
control structure
sivasankaravadivuN
 
PDF
Control statements anil
Anil Dutt
 
PDF
Chapter 9 - Loops in C++
Deepak Singh
 
PPT
control-statements....ppt - definition
Papitha7
 
PPT
C++ chapter 4
SHRIRANG PINJARKAR
 
PDF
Lecture 03 of python programming - data nalaytics.pdf
sabrasnasik1
 
PPTX
Intro To C++ - Class 09 - Control Statements: Part 1
Blue Elephant Consulting
 
PPTX
Module_2_1_Building Python Programs_Final.pptx
nikhithavarghese77
 
PDF
Unit II chapter 4 Loops in C
Sowmya Jyothi
 
PPTX
C-Programming Control statements.pptx
LECO9
 
PPTX
C-Programming Control statements.pptx
SKUP1
 
PDF
Control statements
Kanwalpreet Kaur
 
PPTX
Java 2.pptx
usmanusman720379
 
PPTX
Loops in Cjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj.pptx
tanaykapse999
 
PPTX
REPETITION FROM PPSC AS PER JNTUK KKD.pptx
MastanaihnaiduYasam
 
PPT
Control structures repetition
Online
 
PPT
Decision making and looping
Hossain Md Shakhawat
 
Programming Fundamentals in C++ structures
ayshasafdarwaada
 
Control structure
Samsil Arefin
 
control structure
sivasankaravadivuN
 
Control statements anil
Anil Dutt
 
Chapter 9 - Loops in C++
Deepak Singh
 
control-statements....ppt - definition
Papitha7
 
C++ chapter 4
SHRIRANG PINJARKAR
 
Lecture 03 of python programming - data nalaytics.pdf
sabrasnasik1
 
Intro To C++ - Class 09 - Control Statements: Part 1
Blue Elephant Consulting
 
Module_2_1_Building Python Programs_Final.pptx
nikhithavarghese77
 
Unit II chapter 4 Loops in C
Sowmya Jyothi
 
C-Programming Control statements.pptx
LECO9
 
C-Programming Control statements.pptx
SKUP1
 
Control statements
Kanwalpreet Kaur
 
Java 2.pptx
usmanusman720379
 
Loops in Cjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj.pptx
tanaykapse999
 
REPETITION FROM PPSC AS PER JNTUK KKD.pptx
MastanaihnaiduYasam
 
Control structures repetition
Online
 
Decision making and looping
Hossain Md Shakhawat
 

Recently uploaded (20)

PPT
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PPTX
Presentation about Database and Database Administrator
abhishekchauhan86963
 
PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PDF
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
PDF
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
PDF
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
PDF
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
PPTX
Explanation about Structures in C language.pptx
Veeral Rathod
 
PPTX
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
PDF
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PDF
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
PDF
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
PPTX
Presentation about variables and constant.pptx
safalsingh810
 
PPTX
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PDF
10 posting ideas for community engagement with AI prompts
Pankaj Taneja
 
Why Reliable Server Maintenance Service in New York is Crucial for Your Business
Sam Vohra
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
Presentation about Database and Database Administrator
abhishekchauhan86963
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
Exploring AI Agents in Process Industries
amoreira6
 
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
Explanation about Structures in C language.pptx
Veeral Rathod
 
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
Activate_Methodology_Summary presentatio
annapureddyn
 
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
Presentation about variables and constant.pptx
safalsingh810
 
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
10 posting ideas for community engagement with AI prompts
Pankaj Taneja
 

Control structures in c++