// This program reads a length in feet from // the keyboard, converts the length to inches, // and outputs the converted length to the // video display. It is assumed that the length // is a nonnegative integer. #include using namespace std; int main() { int foot, inch; cout << "Enter length: "; cin >> foot; inch = 12 * foot; cout << foot << " ft" << endl << inch << " in" << endl; return 0; }