Program to convert centimeter into meter and kilometer | Driver Code ; Converting centimeter into meter and kilometer
< ? php $ cm ; $ meter ; $ kilometer ; $ cm = 1000 ; $ meter = $ cm / 100.0 ; $ kilometer = $ cm / 100000.0 ; echo " Length ▁ in ▁ meter ▁ = ▁ " , $ meter , " m " , " STRNEWLINE " ; echo " Length ▁ in ▁ Kilometer ▁ = ▁ " , $ kilometer , " km " , " STRNEWLINE " ; ? >