What is Pseudocode?
- Pseudocode is an informal way of programming description that does not require any strict programming language syntax. Many programmers use it to plan out the function of an algorithm before setting themselves to the more technical task of coding.
- It is useful to describe how an algorithm should work.
- Designing code in a group setting so that complex problem is easy to solve.
- Explaining a computing process to less-technical users because humans may find it easier to understand a more fluid, subjective language that clearly states the purpose of each line of code and computers need a very strict input syntax to run a program.
How to write Pseudocode?
- Arrange all the tasks into a correct sequence and write the pseudocode accordingly.
- First, Write the statement of pseudocode, which establishes the main goal or the aim.
Example:-
This program will allow the user to check whether the statement is true or false.
- The way the if-else, for, while loops are indented in a program, indent the statements likewise, as it helps to comprehend the decision control and execution mechanism.
if "1"
print response
"True"
if "0"
print response
No comments:
Post a Comment