Professional Documents
Culture Documents
Learn what pseudocode is, what its benefits are, and how to describe a task in terms of
pseudocode.
5. Outline all the steps required to solve a problem down to the finest detail.
Write
You can use Indent Outline all Write one
You can use pseudocode
mathematical dependent the steps to step in one
keywords in the logical
symbols statement be performed line
order
Example #
In the previous lesson, we learned to find the square of a number n. Let’s write the
solution in the form of pseudocode.
Pseudocode #
INPUT n
square = n * n
OUTPUT square
Explanation #
We take n as input, i.e., we feed the value of n to the computer. * is the symbol
used for multiplication in programs, so we use it to find the square of n . Finally,
we report the square as the output, i.e., we display the value of square .
Back Next
Mark as Completed