CISC 1110 Lab 7



Write a function called times4. It should be almost identical to the function triple that we discussed in class. It will receive one integer parameter which it calls num, and it will return 4 times that value.


Write a main program which calls your function at least two times with different parameter values. After each call, the main program should print the parameter value and the returned result on a new line. For example, if the parameter is 5, the function will return 20, and main should print 5 and 20.


Combine these pieces into a complete program, main program and function, including a function prototype.


Run the final program.