CHAPTER 3

image

Making Decisions

In this chapter, you’ll greatly extend the range of programs you can write and the flexibility you can build into them by adding one of the most powerful programming tools to your inventory: the ability to compare the values of expressions and, based on the outcome, choose to execute one set of statements or another. This means that you will be able to control the sequence in which statements are executed.

In this chapter you’ll learn:

  • How to make decisions based on arithmetic comparisons
  • What logical operators are and how you can use them
  • More about reading data from the keyboard
  • How you can write a program that can ...

Get Beginning C, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.