Uncategorized

Chapter 3 Introduction to functions

Here we cover the creation of functions and how to define them. We also look at simplifying certain processes for example would you rather type Hello World 20 times or type it 5 times then type the function 4 times which is 11 times less typing. Functions help to separate different parts of the code as well for example a calculator would have different functions so in order to make it simpler to read, we can just give them its own void (function), like for addition subtraction, multiplication and division.