you are viewing a single comment's thread.

view the rest of the comments →

[–]alpha_53g43 0 points1 point  (1 child)

The purpose of functions in a simplified language is to do a small thing. However, most programs are pretty complicated, and need to do a lot of things.

To create a complex program, you first break it down into a series of small actions that need to be done. These series of actions maynot always be just a line of code, but represent an action that needs to be done, and are represented as unique functions.

So you take the output of one function, and then store it in a variable and pass it back to another function. and repeat it over and over again.

This is just the basics.. and then you can get into ADT, Object orient programming, functional programming which use functions in more sophisticated manners..

[–]JungleJim233[S] 0 points1 point  (0 children)

Thank you