answersLogoWhite

0

How do you write pseudo-code?

Updated: 8/10/2023
User Avatar

Wiki User

16y ago

Best Answer

However you want!

Pseudo code is not a well defined programming language. The idea is to write something that looks like code, but doesn't necessarily have to run in any specific language.

For example, you could write:

for all values in some_array:

if value is empty:

fill value

without defining at this point what exactly it means for a value to be empty, or how to fill a value.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Pseudocode is a combination of notes and pieces of actual code. You can think of it as an outline of the logic for your final code. An example of pseudocode for an if statement would be:

if (x==y)

{

do something;

}

else

{

check if x is correct;

}

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

1. Statements should be written in simple english and should be programming language independent.Rememberthat pseudocodes only describe the logic plan to develop a program, it is not programming.

2. Pseudocodes should be concise.

3. Capitalise keywords such as READ,PRINT & so on.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

It's up to you. Remember, pseudo-code means free text, it doesn't have rules.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write pseudo-code?
Write your answer...
Submit
Still have questions?
magnify glass
imp