you list all the variables, then you have an output column. You use test data to put into the algorithm and record the result
e.g
Begin something
Get A
Get B
count = 1
While count <> 5
If A = B then
Print "a=b"
End If
increment count
EndWhile
End
for this algorithm you have the variables "A", "B" and "count"
thus your desk check will look like
note "...." = space
say you have these values A = 1, 2, 3, 4, 5 and B = 2, 1, 3, 4 , 5,
Deskcheck:
A...B...Count......Output
1...2......1.......... (blank)
2...1......2
3...3......3............... "a=b"
4...4......4................"a=b"
5...5......5................"a=b"