All programming languages have some common features, Control flow statements are one of them. A program’s control flow is the order of statements and control flow statements are the statements which can determine the next executed statement. As the default control flow of program is statements written in a program or script execute in top to bottom manner but a control flow statement makes any statement conditional to be executed. As well as statements like these can repeat any set of statements. Currently we have 4 categories of control flow statements

  • Conditional statements
    • if, elif and else
  • Looping statements
    • for and While
  • Exception handling
    • try, catch, finally and throw
  • Jump statements
    • break, continue and return

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.