Update 104-pseudo-code.md

added an example of a pseudocode
pull/8332/head
Kruti Bibhab Patra 1 month ago committed by GitHub
parent 6d28ab40a8
commit f3a5e3cb8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      src/data/roadmaps/datastructures-and-algorithms/content/101-programming-fundamentals/104-pseudo-code.md

@ -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…
Cancel
Save