// // Program to test "height_convert_2" function. // #include #include // "height_convert_2" function. // Pre: "in" is non-negative. // Post: Prints "in" inches converted to feet and inches. void height_convert_2(int in) { cout << in/12 << " feet and " << in%12 << " inches "; return; } int main(void) { int a; cout << "Enter a non-negative integer representing inches:\n"; cin >> a; cout << a << " inches is "; height_convert_2(a); cout << endl; return EXIT_SUCCESS; }