#include <iostream.h> // Include the input/output library header, // to be able to use "cin", "cout" /* f( n ) * return 3n^2 + 4n + 2 */ int f( int n ) { // A function which takes int n, returns an int. int result = 3*n*n + 4*n + 2; return result; // You have to "return" explicitly. } int main() { // Every program needs one function named "main" cout << "f at 7 is " << f(7) << "." << endl; // Nothing prints by iteslf; endl is a newline. return 0; /* Return a value...to where? Who called main? Always return 0 from main, to UNIX. */ }