To convert inches to centimeters, multiply the number of inches by 2.54, since 1 inch is equal to 2.54 centimeters. For example, to convert 5 inches to centimeters, you would calculate 5 x 2.54, which equals 12.7 centimeters. This straightforward multiplication allows you to easily convert any measurement from inches to centimeters.
1 kilometer=100,000 centimeters
520 cm
#include <iostream> using namespace std; int main() { double meter, cent; cout<<"Enter value in meters"; cin>>meter; cent=meter*100; cout<<meter<<" meters"<<" = "<<cent<<" centimeters; system("pause"); return 0; } to convert more than one number put the whole program in a for loop