Gopal

Gopal

  • 2k
  • 135
  • 9.8k

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

Mar 11 2021 6:17 AM
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)