parent
6d28ab40a8
commit
f3a5e3cb8e
1 changed files with 12 additions and 1 deletions
@ -1,3 +1,14 @@ |
||||
# Pseudo Code |
||||
|
||||
Pseudo code is a plain language description of the steps in an algorithm or another system. It is intended for human reading rather than machine reading. Pseudo code often uses control structures and terms common to popular high-level programming languages without strictly adhering to the syntax of any particular one. The foremost aim of pseudocode is to explain the inner "algorithmic thinking" behind coding, rather than focusing on the syntax of a particular language. A nice feature of pseudocode is that it is largely able to be understood by a wider range of people than the corresponding code in a specific programming language, which enhances its roles in drafting, documentation, learning, and collaboration aspects. |
||||
Pseudo code is a plain language description of the steps in an algorithm or another system. It is intended for human reading rather than machine reading. Pseudo code often uses control structures and terms common to popular high-level programming languages without strictly adhering to the syntax of any particular one. The foremost aim of pseudocode is to explain the inner "algorithmic thinking" behind coding, rather than focusing on the syntax of a particular language. A nice feature of pseudocode is that it is largely able to be understood by a wider range of people than the corresponding code in a specific programming language, which enhances its roles in drafting, documentation, learning, and collaboration aspects. |
||||
|
||||
example: |
||||
START |
||||
INPUT: a list of numbers (numbers) |
||||
SET: sum = 0 |
||||
FOR each number in numbers: |
||||
ADD number to sum |
||||
END FOR |
||||
SET: average = sum / number of elements in numbers |
||||
OUTPUT: average |
||||
END |
||||
|
Loading…
Reference in new issue