/** Excercise: * 1. Trace through user-defined function * 2. Create your own function that does a particular task */ void main(){ // declare variables int my_int; // store a new value in memory my_int = square(3); // let's see what is stored printf("my_int: %d\n", my_int); // now, create (implement) a function that // adds one to a number and then triples it. // it must return an 'int' type // *** uncomment the line below and try to compile *** //my_int = add_one_then_triple(3); printf("my_int: %d\n", my_int); // <- this should print 12! } int square(int n){ return n * n; } int double(int n){ return 2 * n; } // create your new functions below