LET arr = [ 4, 8, 15 ]
LET i = 0
LET num = 0
REPEAT WHILE i < LENGTH(arr)
BEGIN
num = arr
INCREMENT i
END
+---+-----+-----------------+
| i | num | i < LENGTH(arr) |
+---+-----+-----------------+
| 0 | 0 | true |
+---+-----+-----------------+
+---+-----+-----------------+
| i | num | i < LENGTH(arr) |
+---+-----+-----------------+
| 0 | 0 | true |
| 1 | 4 | true |
+---+-----+-----------------+
+---+-----+-----------------+
| i | num | i < LENGTH(arr) |
+---+-----+-----------------+
| 0 | 0 | true |
| 1 | 4 | true |
| 2 | 8 | true |
+---+-----+-----------------+
+---+-----+-----------------+
| i | num | i < LENGTH(arr) |
+---+-----+-----------------+
| 0 | 0 | true |
| 1 | 4 | true |
| 2 | 8 | true |
| 3 | 15 | false |
+---+-----+-----------------+
LET arr = [ 4, 8, 15 ]
LET i = 0
LET num = 0
REPEAT WHILE i < LENGTH(arr)
BEGIN
num = arr
INCREMENT i
END
+---+-----+-----------------+
| i | num | i < LENGTH(arr) |
+---+-----+-----------------+
| 0 | 0 | true |
+---+-----+-----------------+
+---+-----+-----------------+
| i | num | i < LENGTH(arr) |
+---+-----+-----------------+
| 0 | 0 | true |
| 1 | 4 | true |
+---+-----+-----------------+
+---+-----+-----------------+
| i | num | i < LENGTH(arr) |
+---+-----+-----------------+
| 0 | 0 | true |
| 1 | 4 | true |
| 2 | 8 | true |
+---+-----+-----------------+
+---+-----+-----------------+
| i | num | i < LENGTH(arr) |
+---+-----+-----------------+
| 0 | 0 | true |
| 1 | 4 | true |
| 2 | 8 | true |
| 3 | 15 | false |
+---+-----+-----------------+
LET arr = [ 4, 8, 15 ]
LET arr = [ 4, 8, 15 ]
IF i < LENGTH(arr) THEN
GOTO Next Line
ELSE
BREAK Out of Loop
END IF
IF i < LENGTH(arr) THEN
GOTO Next Line
ELSE
BREAK Out of Loop
END IF
Last reply 2 days ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 3 days ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 2 weeks ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 3 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 1 month ago
Not receiving any response from University of Birmingham.Last reply 3 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]Last reply 2 days ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 3 days ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 2 weeks ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 3 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 1 month ago
Not receiving any response from University of Birmingham.Last reply 3 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]