Grade 11 - Competency 10: Writes programs to solve problems
Drag symbols here. Move them to desired positions.
var marks: array[1..10] of integer;
DECLARE marks[10] AS INTEGER
| Variable Name | Data Type | Value | Valid | Action |
|---|
IF condition THEN
statements
ENDIF
IF condition THEN
statements1
ELSE
statements2
ENDIF
WHILE condition DO
statements
ENDWHILE
• Condition checked at start
• May execute 0 times
FOR i = 1 TO n DO
statements
ENDFOR
• Fixed number of iterations
• Counter variable
REPEAT
statements
UNTIL condition
• Condition checked at end
• Executes at least once
Rules: Start with letter, no spaces, meaningful names
Constants: Values cannot be changed after declaration
| Identifier | Type | Value | Constant | Memory Address | Actions |
|---|