In this lesson, we will discuss the flow of execution of programs, with a focus on the following key points,
- How can the execution flow of a program be controlled?
- Working with if/else and try/catch statements to establish control flow in programs.
For the Javascript version of this lesson, please click here.
In previous lessons, we learned about variables, data types, and performing different operations using variables. This lesson focuses on the control flow
of a program, which is the concept of controlling the behavior of the program during its execution. The control flow of a program can be specified by several pre-defined elements in programming languages. In this lesson, we will discuss two of these elements, if/else
and try/catch
statements.