Skip to content
2000

Control Flow

image of Control Flow
Preview this chapter:

It's now the time for the readers to acquaint themselves with the control flow in the programming. So far the users have seen the linear path of execution, where the execution commences from the top and moves sequentially to the bottom. Further, our world is filled with tasks required to run in loops, for example in banking applications, unless the user enters the correct password the system prompts the dialogue "Please enter the correct password". In this chapter, we introduce the concept of control flow through which the users can decide the execution path for the program and the looping constructs to iterate through the tasks. Our key takeaways from this chapter are listed below: 1. Understanding the decision control statements. 2. Programming with if-else ladder and its variants. 3. A hand on for, and while loop statements. 4. Understanding the control flow alterations the jump statements like break, continue and pass.<br>

/content/books/9789815179637.chap3
dcterms_subject,pub_keyword
-contentType:Journal
10
5
Chapter
content/books/9789815179637
Book
false
en
Loading
This is a required field
Please enter a valid email address
Approval was a Success
Invalid data
An Error Occurred
Approval was partially successful, following selected items could not be processed due to error
Please enter a valid_number test