Ask a Teacher



WHAT IS A PSEUDOCODE?GIVE AN EXAMPLE


Pseudocode is an artificial and informal language that helps programmers develop algorithms. Pseudocode is a "text-based" detail (algorithmic) design tool.

The rules of Pseudocode are reasonably straightforward. All statements showing "dependency" are to be indented. These include while, do, for, if, switch. Examples below will illustrate this notion.



Examples:

1.. If student's grade is greater than or equal to 60

Print "passed"
else
Print "failed"


comments powered by Disqus