What are Loops in Programming?

What are Loops in Programming?

Another important programming concept is Loops, which are also referred to as Repetition and Iteration.

Computers are very good at repeating actions, whether you want them to repeat something two times, one hundred times, or even to repeat something over and over forever.

We use Loops to make computers repeat actions.

There are many examples of repetition in real life, as well as in a program.

For example, when you swim 10 laps in a pool, you are repeating the lap 10 times.

You would also be repeating the actions that make up the stroke (for example: freestyle) over and over as you swam the lap.

Scratch has three different types of loop blocks: forever, repeat and repeat until.


Views
1 Total Views
1 Members Views
0 Public Views
Share on Social Networks
Share Link
Share by mail

Please login to share this webpage by email.