#include using namespace std; // global constant variable for unchanging values const double CM_PER_INCH = 2.54; int main() { // declare variables first, can initialize double inches = 0; double cm = 0; // get number of inches from user cout << "How many inches? "; cin >> inches; // calculate number of centimeters cm = inches * CM_PER_INCH; // display number of centimeters cout << "Centimeters: " << cm << endl; // return from function with specified type of data (int) return 0; }