ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
LAB 3
Exercises
Exercise 1



• Write a C++ program to display the sum
   and product of two input numbers.
Exercise 2


• Write a C++ program to enter a distance in
 meters and print out its value in kilometers,
                yards, and miles.
(Note: 1 m = 0.001 km = 1.094 yd = 0.0006215 mi).
Exercise 3


• Write a program to compute the cost for
 carpeting a room. Input should consist of the
 room length (in meters), room width (in
 meters), and carpet price per square meter.
Exercise 4



• Compute and print the number of minutes in
                    a year.

More Related Content

C++