
Postlab Activities
Exercise 1: Write a program that prints the hundreds digit in a series of integer
constants. For example, if constants ONE and TWO are 1456 and 254, respectively, your
program should print 4 and 2. You may choose the integers yourself. Your output
should include the original number followed by the digit in the hundreds position.
Label your output appropriately.
Exercise 2: Write a program that prints the number 1349.9431 with three decimal
places, with two decimal places, and with one decimal place.
Exercise 3: Write a program that prints each of the following values in two columns:
1234, 45, 7, 87, 99999. The first column should ...