Category: Uncategorized

30. Functions

The subroutines on the other page are simply procedures that run the code within then when called. The other type is a function that returns value(s) rather than printing to the screen Tasks Type in the code and make sure it works. Create a function that takes the radius of a circle, and returns the […]

29. Subroutines

Subroutines (sometimes known as procedures) allow you to split your program into reusable chunks that you can call from any other part of your program Subroutines always appear before the main program They can work on their own or you can pass them values Subroutines do not return values to the main program Tasks Type […]