cm = inch * 2.54f;
cout << "Inch : " << inch << endl << endl;
return cm;
}
[code]
The above function is to convert the value in the parameter to centimeter and returns the converted value.
Write the main () function that will request input for value in inch from the user. The program will call the above function to convert the input to centimeter and displays the value.