Next: About this document ...
Up: Logical Expressions
Previous: Logical Expressions

Checkoff

Write a program that reads an integer and then does the following.

For example, if the input is 5, your program should print:

The number is negative or odd
The number is nonzero

To keep this interesting, the only form of IF that you should use in your program is the logical IF that you learned in this section.

Homework

There is no homework with this lesson.


Next: About this document ...
Up: Logical Expressions
Previous: Logical Expressions

Hamlet Project
hamlet@cs.utah.edu