CHRIST MCA 2009-2012
Would you like to react to this message? Create an account in a few clicks or log in to continue.

35. WASS to print your name until the user presses Q or q button

Go down

35. WASS to print your name until the user presses Q  or q button  Empty 35. WASS to print your name until the user presses Q or q button

Post  sowmya Wed Jul 21, 2010 9:35 pm

clear
ch='q'
while [ ch = "q" -o ch = "Q" ]
do
echo "Enter your name"
read name
echo "Want to enter name again:(q/Q) "
read ch
done

sowmya

Posts : 5
Join date : 2010-07-21

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum