#include /* this program shows how to use a function to compute an age in 'dog year' */ /* function prototype */ int computeage( int age ); int main( void ) { /* declare an integer to hold the computed dog years age */ int dogyears=0; /* compute the age of a 7 year old and store the results in the 'dogyears' variable */ dogyears=computeage(7); /* display the age in dog years */ printf( "age in dog years is %d\n", dogyears ); return 0; } int computeage( int age ) { int returnage = 0; /* compute the age */ returnage = age * 7; /* return the age */ return( returnage ); }