Functions
Each program we make will have a main()
funciton.
It's the first things that gets executed.
We can create other functions as well. We'll use three types of functions with the following properties:
- Does not accept arguments - Has no return value
- Accepts arguments - Has no return value
- Does not accept arguments - Does have a return value
- Accepts arguments - Does have a return value
The formulas for each of the three types are on the next three pages. Don't worry too much about memorizing them. We'll use each plenty of times.