In computer science, pseudocode is a description of the steps in an algorithm using a mix of conventions of programming languages with informal, usually self-explanatory, notation of actions and conditions.
Control flow
if ... then ... [else]
while ... do ...
repeat ... until ...
for ... do ...
Method call
mehtod (arg [,arg...])
Return value
return <expression>
Code example
Given an array A of integers and we need to return the maximum.
max <- -∞
for i <- 0 to n - 1 do
if A[i] > max then
max <- A[i]
return max
Back to parent page: Data Structures and Algorithms
Reference - https://en.wikipedia.org/wiki/Pseudocode