Robert's trick is really good, but involves some brains.
For us without it, find C on low E string, 8th fret
(That's because C scale is the base, nobs, no #, all white keys, 7 notes.)
Right below it, 5th string, 8th fret is F - one flat
Right below it is A#/ Bb - 2 flats
..... D#/ Eb - 3bs
For the second sring move to 9th fret, G#/ Ab - 4 flats
high E - C/ Db 5 flats
Now the oposite, high e 8th fret C
Above it G - 1#
G string move to 7th fret D - 2#
.... A - 3#
... E - 4#
... B - 5#
So, going downwards across the neck, in 4ths, gives bs.
Going upwards, in 5ths, gives #s.
If there was another one string, whichever way you went you'd come to F#/ Gb, 6#/ 6b, the middle of the road, a tritone from C.
Naturaly, being half step from C, both B and C#/Db can be written with 7b, or 7#, because all the notes are shifted half step from C major scale.
7b + 5# and 5b+7# give 12 semitones, whole octave,