+ 2

Write a program in C using function to convert inches into centimeters.

Write a function to convert inches into centimeters. (one inch is 2.54 centimeters), then write a program that prompts the user to input a measure in inches, call the conversion function and print out the measurement in centimeters.

24th Nov 2018, 4:17 AM
Abhinav
Abhinav - avatar
1 Answer
- 1
float inchesToCentimeters(float k){ return k*2.54; }
24th Nov 2018, 4:33 AM
LetterC67
LetterC67 - avatar