Please Share:
https://www.facebook.com/sharer/share...
That video lesson looks at how a programming task can be solved in several different ways. #English subtitles available.
We will deliberately choose a simple programming problem.
The task is to find the sum of the natural numbers from 1 to n inclusive.
As a basic repetitive problem, the solutions are in the form of a C++ function.
Why do we use functions?
Functions are used to make reusable ready-made solutions.
Functions are small pieces of code. This code has been cleared. So this piece of code can be used to solve other larger tasks. This approach minimizes both time and risk in solving larger tasks.
There is a separate video lesson about the syntax of your functions. This tutorial demonstrates half a dozen correct syntaxes for recording the same function: • C++ Functions: Quick Introduction, learn b...
The purpose of this video tutorial is to show how there can be more than one solution for a programming problem.
The lesson explains that the different approaches, ways to solve the task lead to the same results. Just the right results are always the same.
As with mathematics and programming tasks, there may be more than one solution.
Join Best Questions Community
to learn about both tech and marketing topics:
/ best.questions
Please Share:
https://www.facebook.com/sharer/share...
#tobehelpful
Disregard Keywords: programming basics, programming for beginners, програмиране за деца, уроци по програмиране София, учител по програмиране