You are on page 1of 1

Programs C++

Assignment

1) The distance between two cities is input through the keyboard (in
km). Write a program to convert the distance in meters, feet, inches
and centimeters.

2) Interchange the content of 2 variables without introducing the third


variable.

3) If a 5 digit number is input through the keyboard, write a program to


calculate the sum of its digits.

4) If the selling price and profit earned of item is input through the
keyboard, write a program to write the cost of item.

5) If the temperature in Celsius is input through the keyboard, write a


program to convert Celsius into Fahrenheit and Kelvin.

You might also like