📝 Swift Functions
Functions are reusable blocks of code that perform specific tasks. In Swift, you define them with the func keyword.
📌 Basic Function Example
Output will appear here...
📖 Function Syntax Rules
- Use the
func keyword to declare a function.
- Specify parameters inside parentheses.
- Functions can optionally return a value using
-> ReturnType.
- Call a function by using its name followed by parentheses.
💡 Tip: Use clear, descriptive function names so your code reads like natural language.