Consider this example. You are given a problem:
What you have are the following:
- A list of numbers represented as myArray(1, 2, 3, 4, 5)
- You have only a certain words (and characters) to express yourself:
- while
- "(" and ")"
- "{" and "}"
etc .. (You would only need a few more).
Write down the steps to find the sum of all the numbers in the list, given certain ways of defining which steps are to be executed multiple times and so on.
If programming had been explained like this to me when i first learnt it, it might be that I would have looked at programming in a totally different light. :)