Professional Documents
Culture Documents
Let the first distance be 34 Km and 900 meters and the second
distance is 564 Km and 500 meters. The result of adding these two distance values should be
Q2) Write a program to add an 8% sales tax to a given amount and round the result to the
nearest penny.
Q3) The length of a rod (in meters) is input through the keyboard. Write a program to convert
and print this length in feet, inches and centimeters.
Q4) Write a program that extracts and add the digit at tens place of integral part of float number
to its digit at unit place.