Lab 6

2/24/06

Task: Write a progam that asks the user for a number, and then prints to the screen some indication of ALL of the following conditions that that numbers satisfies:

  1. The number is between 20 and 50
  2. The number is between 10 and 20 or between 40 and 50.
  3. The number is between 100 and 200, but is not 150.
  4. The number is between 100 and 200, but not between 130 and 140

Purpose: The purpose of this program is to practice writing conditional expressions.