Question: For this exercise, code the following two functions: The sumAndPrint function takes two arguments ( the data in the parenthesis ) , adds them together

For this exercise, code the following two functions:
The sumAndPrint function takes two arguments (the data in the parenthesis), adds them together and prints the result.
The sumAndReturn function takes two arguments (the data in the parenthesis), adds them together and returns the result. Then print the returned value -- you just don't do it in the function.
Obviously, you have to understand the difference between printing and returning in order to get this right. Printing is not returning! However, you can print a returned value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!