Update ue01.c

simplified input loop