logotransparent.png

Legion of Learners

www.lol-101.com

  • Home

  • Classrooms

  • Courses

  • About Us

    • Executive Team
    • Board Members
  • Resources

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    sfolax6776
    Oct 26, 2019
      ·  Edited: Nov 09, 2019

    5.1 - What is the third and last type of flow control?

    in Introduction to Java

    A. Introduction

    There are probably millions of programs in the world now, but all programs are made of three different "flows", or control structures: sequential, branching and looping.

    Sequential execution goes from top to bottom, line by line.


    Branching execution allows you to make decisions based on a condition:



    You can even embed a branching structure in one branch:




    Or, making one decision right after another:


    B. So what's the third and last type of flow (control structure)?

    C. Try to write some pseudo code to add all even numbers between 200 and 300.

    0 comments
    0
    0 comments

    Questions? Email us at legionoflearners@gmail.com or join our WeChat group!

    • lol-101dotcom

    ©2020 Legion of Learners