in reply to compare stdin for a number
hmm, then, maybe anoxer you show us how you would proceed, ask questions when you got stuck or where you believe there should be an easier way to do it. We will help you along.
Sören