Lesson 4

Cards (6)

  • Statements in a program are normally executed one after another. This is called sequential flow of control. Often it is desirable to alter the sequential flow of control to provide for a choice of action, or repetition of action.
  • The relational, equality, and logical operators are heavily used in flow of control construct.
  • Relational Operators < less than > greater than <= less than or equal to >= greater than or equal to.
  • Equality Operators = = equal != not equal
  • Logical Operators ! (unary) negation && logical and || logical or
  • The ! operator is unary. All other relational, equality, and logical operators are binary.