Skip to content
Chapter 7: Functions and Procedures
- Introduction to Functions:
- Defining and calling functions in RAPTOR.
- Functions that take parameters and return values.
- Creating Functions:
Example: A function that calculates the square of a number.
- Passing Parameters to Functions:
- How to pass input values to functions.
- Procedures vs. Functions:
- Difference between functions (which return values) and procedures (which do not return values).
- Example:
A program that computes the area of a circle using a function.