d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Any Tips On Writing Pseudocode?
Add Reply New Topic New Poll
Member
Posts: 6,175
Joined: Sep 4 2009
Gold: Locked
Trader: Scammer
Oct 9 2013 11:24am
Looking for a step by step breakdown on how to write a proper pseudocode if possible.
and also, are there any words i should avoid when i write it?
for example, i use otherwise instead of else etc.
Member
Posts: 2,757
Joined: Nov 26 2007
Gold: 1,214.81
Oct 9 2013 11:38am
use all the regular programming terms like if, else, for, while, do, get, set, function, method

here's an example of what pseudocode could look like

int function addNumbers (array numbers){
set total to 0
for each number in numbers
set total to total + number
return total
}

it doesn't matter how you write it, as long as the person you give it to can understand it.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll