5. WASS to print the following series – 1 3 2 4 3 5 4 ….100
Page 1 of 1
5. WASS to print the following series – 1 3 2 4 3 5 4 ….100
5. WASS to print the following series – 1 3 2 4 3 5 4 ….100
clear
echo "The series is: "
s=1
while [ $s -lt 100 ]
do
s=`expr $s + 2`
echo " $s "
s=`expr $s - 1`
echo " $s "
done
clear
echo "The series is: "
s=1
while [ $s -lt 100 ]
do
s=`expr $s + 2`
echo " $s "
s=`expr $s - 1`
echo " $s "
done
nibedita- Posts : 3
Join date : 2010-07-21
Similar topics
» 35. WASS to print your name until the user presses Q or q button
» 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.
» 39. WASS which accept a file name and print last 10 lines of the file
» New feel for World Series
» 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.
» 39. WASS which accept a file name and print last 10 lines of the file
» New feel for World Series
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum