Program to convert centimeter into meter and kilometer | C ++ program to convert centimeter into meter and kilometer ; Driver Code ; Converting centimeter into meter and kilometer
#include <bits/stdc++.h> NEW_LINE using namespace std ; int main ( ) { float cm , meter , kilometer ; cm = 1000 ; meter = cm / 100.0 ; kilometer = cm / 100000.0 ; cout << " Length ▁ in ▁ meter ▁ = ▁ " << meter << " m " << " STRNEWLINE " ; cout << " Length ▁ in ▁ Kilometer ▁ = ▁ " << kilometer << " km " << " STRNEWLINE " ; return 0 ; }