User-Defined Function Example

100 + 50 = 150
47 + 55 = 102


100 - 50 = 50
47 - 55 = -8


Built-in Function Example

The phrase "I LOVE TO FISH!" contains 15 characters.

How Functions Work

Functions are used to do specific jobs in a program. They can process information and return a result. Functions make it easier to organize code and can be used multiple times without writing the same code again.