// Project functions.cpp // Show how stand alone functions // work in C++. #include #include int main() { int x; // Function prototypes. int fahr2cel(int); void pretty_print(int); cout << "Enter Celsius value: "; cin >> x; pretty_print(fahr2cel(x)); return EXIT_SUCCESS; } int fahr2cel(int celsius) { int fahrenheit; fahrenheit = 9 * celsius / 5 + 32; return fahrenheit; } void pretty_print(int value) { cout << endl; cout << "**********" << endl; cout << value << endl; cout << "**********" << endl; cout << endl; } // Output: Enter Celsius value: 20 ********** 68 **********