Simple programming question about printing sinewaves in ascii