I wanna write a program for unit conversation. From inch to centimeter
Hello everyone one. I wanna write a program for unit conversation. From inch to centimeter. I can convert, but this time I couldn't get the unit after the number. I have written float centimeter = 2.54*(float)inch. But I want also to add unit of inch and centimeter, how can I do this? How can I write it using c++?