Update pi_nth_fig.txt

changed if to while loop, and userNum < 0 to userNum < 1