Advertisement

Selection

  • Quentin CharatanEmail author
  • Aaron Kans
Chapter
Part of the Texts in Computer Science book series (TCS)

Abstract

Outcomes:

By the end of this chapter you should be able to:
  • explain the difference between sequence and selection;

  • use an if statement to make a single choice in a program;

  • use an if…else statement to make a choice between two options in a program;

  • use nested if…else statements to make multiple choices in a program;

  • use a switch statement to make multiple choices in a program.

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  1. 1.University of East LondonLondonUK

Personalised recommendations