Programming (11th Grade)

What are functions used for in programming?

Functions encapsulate reusable code that can be called with parameters to perform specific tasks.