150k views
1 vote
Explain at least one reason why programming languages have functions

1 Answer

4 votes
with functions we can separate different parts of our code. each functions implements a single logical part of the program.

for example sqrt() function does square root. so we can use it in different programs, because it's a stand-alone component.

User Adchilds
by
7.7k points