1. Modify the above program to display the two right-most digits of the integral part of the
number. 2. Write a program that will obtain the length and width of a rectangle from the user and
compute its area and perimeter. 3. Given an integer number, write a program that displays the number as follows:
First line : all digits
Second line : all except first digit
Third line : all except first two digits
…….
Last line : The last digit
For example, the number 5678 will be displayed as:
5 6 7 8
6 7 8
7 8
8
4. The straight-line method of computing the yearly depreciation of the value of an item is
given by
Write a program to determine the salvage value of an item when the purchase price, years
of service, and the annual depreciation are given.