35. WASS to print your name until the user presses Q or q button
Page 1 of 1
35. WASS to print your name until the user presses Q or q button
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
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
Similar topics
» Prog 17. WASS to accept a weekday ( 1 ,2 3 …7) from user using command line and print appropriate day in words ( Monday , Tuesday , Wednesday )
» Prog31. WASS to accept a color name from the user and check whether its equal to BLACK , if so print message as accepted else display not accepted.
» 5. WASS to print the following series – 1 3 2 4 3 5 4 ….100
» WASS to accept a string from the user and display number of vowels
» 39. WASS which accept a file name and print last 10 lines of the file
» Prog31. WASS to accept a color name from the user and check whether its equal to BLACK , if so print message as accepted else display not accepted.
» 5. WASS to print the following series – 1 3 2 4 3 5 4 ….100
» WASS to accept a string from the user and display number of vowels
» 39. WASS which accept a file name and print last 10 lines of the file
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum