1
Answer

I wanna write a program for unit conversation. From inch to centimeter

Photo of Gopal

Gopal

4y
451
1
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++?

Answers (1)