Pseudo Code
Pseudo Code
PSEUDOCODE
• Pseudocode is an artificial and informal language that helps
programmers develop algorithms.
• It is intended for human reading and cannot be executed directly by
the computer
• Pseudocode uses six programming constructs (always written in
uppercase): SEQUENCE, CASE, WHILE, REPEAT-UNTIL, FOR, and
IF-THEN-ELSE. These constructs — also called keywords —are used to
describe the control flow of the algorithm.
HOW TO WRITE PSEUDOCODE
BEGIN
SET i =1
SET sum=0
WHILE (i <=100)
COMPUTE sum=sum + i
INCREMENT i
ENDWHILE
END