+ 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.
1 Answer
- 1
float inchesToCentimeters(float k){
return k*2.54;
}