I'm actually in the middle of writing a program for class with one as I read your question. The pseudocode I wrote to describe it is as follows:
# prompt user for X, assign to variable
# while X is not equal to an empty string:
# perform an action
# prompt user for X