Tutorial B
1. Write an application that reads five integers, determines and prints the largest and smallest integers
in the group.
2. Write an application that reads an integer and determines and prints whether it is odd or even.
[Hint: Use the remainder operator. An even number is a multiple of 2. Any multiple of 2 leaves a
remainder of 0 when divided by 2.]
3. Write an application that reads two integers, determines whether the first is a multiple of the second
and prints the result. [Hint: Use the remainder operator.]
4. Using only the programming techniques you learned in this chapter, write an application that
calculates the squares and cubes of the numbers from 0 to 10 and prints the resulting values in table
format, as shown below. [Note: This program does not require any input from the user.]