Program Control
Structure
Learning outcome
 Solve problems using loops control structures.
Difference between ‘while’ and ‘do
while’ loops
Difference Between for, while and do while
Loop in C++
Difference Between for, while and do while
Loop in C++
Difference Between for, while and do while
Loop in C++
The continue statement
The exit statement
 The exit() function is used to terminate
program execution and to return to the
operating system.
 The return code "0" exits a program without
any error message, but other codes indicate
that the system can handle the error
messages.
Syntax
void exit(int return_code);
Example

Program Control Structure (2) (1) (1).pptx