Salima saw a pair of beautiful dress online but she was confused about the metric system used for the size of the dress. It was given in feet and inches, even in some countries that primarily use some other metric system.
As Salima knows a little bit of programming she thought of creating a program that gets number of feet and inches and compute the height of the customer in centimetres.
Functional Description:
One foot is 12 inches.
One inch is 2.54 centimeters.
Input:
Only line of input has two numbers of type integer representing the feet and inches separated by a space
Output:
Print the Height of the customer in centimetres
#include <stdio.h> int main() { int feet,inches; float cms; scanf("%d %d",&feet,&inches); cms=feet*12*2.54+inches*2.54; printf("Your height in centimetres is : %.2f",cms); return 0; }
INPUT_1:
5 5
OUTPUT:
Your height in centimetres is : 165.10
INPUT_2:
7 6
OUTPUT:
Your height in centimetres is : 228.60
INPUT_3:
7 1
OUTPUT:
Your height in centimetres is : 215.90
Morae Q!
- Convert seconds to hours – HMS format.
- Find out the tax amount of the bill with tip for the meal.
- Find the area of the pyramid.
- Find the area of triangle using heron’s formula.
- Find the interest and amount resided in the bank.
- Convert the travel days to years and months.
- Find the first three powers of N number.
- Compute the height from feet and inches to centimetres.
- Calculate the amount of interest earned in the bank.
- Find the ways they can choose the sequence of dummy statues.
- Find the Lapindrome strings.
- Classify the salary of a person.
- Find the day on providing the week number.
- Find the least number of marble stones needed to pave the square mall.
- Find the number of steps on chessboard performed to satisfy a condition.
- Find the time, hours and minutes the train was delayed.
- Find the quantity of food packets shared and available.
- Compute all Arithmetic Operations.
- Find the amount to pay for the electricity bill.
- Find the sum of numbers with three values after decimal point.