You can write your own functions
The code for a function can serve as both the declaration and the defintion.
As for variables, if you are to going to call your function, it must be declared before the point that it is called.
The function definition can occur in a file after the
main function that calls it, but a declaration must
come before it is called.