Writing pseudocode is pretty easy actually:
- Start with the algorithm you are using, and phrase it using words that are easily transcribed into computer instructions.
- Indent when you are enclosing instructions within a loop or a conditional clause. A loop is a set of instructions that is repeated. A conditional clause is formed by a comparison and what to do if that comparison succeeds or fails. This technique makes sure it's easy to read.
- Avoid words associated with a certain kind of computer language.
It turns out that there are some fairly standard words you can use. These include standard looping structures like the following:
- FOR … ENDFOR
- WHILE…ENDWHILE
There are also some terms for standard conditional clauses:
- IF … ENDIF
- WHILE … ENDWHILE (this is both a loop and a conditional clause by the way)
- CASE … ENDCASE
There are more, but that's enough for us to present some examples.
source: https://study.com/academy/lesson/writing-pseudocode-algorithms-examples.html
https://www.geeksforgeeks.org/how-to-write-a-pseudo-code/