Real Code
for(int i = 0 ; i < myArray.lenght ; i++){
println(myArray[i]);
}
Pseudo code
aList <- [2,3,4]
// of with a box surrounding it
//items indexed by their position, 20 is indexed as 1, 30 as 2, 40 as 3
[scores <-[20, 30, 40]]
---------------------------
| For EACH item IN scores |
|-------------------------|
|DISPLAY[item] |
|-------------------------|
| |
---------------------------
More Complex
//Makes 6 'cubbies' like [96|93|90|100|93|90]
---------------------------------------
| Scores <- [96, 93, 90, 100, 93, 90] |
| ---------- |
| | n <- 0 | |
| ---------- |
---------------------------------------
----------------------------------------
| REPEAT LENGHT [scores] TIMES |
----------------------------------------
| | DISPLAY{scores[LENGHT(scores)-n]} |
| | -------------- |
| | | n <- n + 1 | |
| | -------------- |
----------------------------------------
OUTPUT:
90 93 100 90 93 96