#include // include the standard input/output library header 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 prog needs a function named "main" printf( "f(7) is %d\n", f(7) ); // Nothing prints by itself return 0; // Nothing returned! }