Professional Documents
Culture Documents
Alpro Class 2
Alpro Class 2
PROGRAMMING
Session 2
• Descriptive
• Flowchart
• Psuedocode
Output : 1,2,3….,9
Algorithm …
…. Create variable “bilangan”
…. Set the value 1 to the bilangan variable
…. Repeat as long as bilangan is less than 10
…………… show bilangan
…………… adjust value bilangan by 1
Structure • Selection
• Loop
A B
False True
A>B True A>B
Odd?
Number Even?
General Form
For variable ← starting_value to ending_value do
action
OR