Answer the question
In order to leave comments, you need to log in
Why is a function needed?
For example, I want to write a program that will calculate the amount of a mortgage for a certain period. I tried to write such a program through loops. But after all it will be easier to write it through functions?
Answer the question
In order to leave comments, you need to log in
Nothing prevents you from using both.
And the question is revealed by reading at least the first chapters of any practical training book on the basics of programming.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question