Wednesday, 7 March 2018

What is a function and a for loop?

A Function Programme:)

A function in coding is a type of of procedure or a routine. It is a group of different
commands of a programme that performs a specific action. It is a programme that
performs many operations but does not return a value. A function is a unit of code that
is often defined by it's role within a more greater structure in it.

A For Loop Programme:)

A for loop is a sequence of different instructions that is continually repeated over
and over again until a certain condition has reached. Typically when a certain command
is done, such as getting item of data and changing it. It is a control flow statement
for specifying iteration, which allowed the code to be executed repeatedly.

No comments:

Post a Comment