What are subroutines used for?

There are two types of subroutines used in high-level programming languages: procedures and functions. A function is a subroutine of a special kind, which, in addition to receiving parameters, performing actions and transmitting the results of work through parameters, has one more feature – it must always return a result.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.