Write a shell script to generate following series
1,3,2,4,3,5,4,6,----100
num=1
while [ $num -le 98 ]
do
check=`expr $num % 2`
if [ $check -ne 0 ]
then
echo -n "$num"
odd=`expr $num + 2`
echo -n "$odd"
else
echo -n "$num"
even=`expr $num + 2`
echo -n "$even"
fi
num=`expr $num + 1`
done
Shopping In MUMBAI
Are you searching for Discounts, offers, sale in Mumbai ? You are in the right place. MUMBAI, a shopping haven, has no dearth of great discounts and sales. This blog features the best MUMBAI shopping offers, sale, discounts and deals and bargains CURRENTLY GOING on in Mumbai plus a few free things thrown in on top.
Don't wait for it because once they are gone, they are gone. Hurry!..By clicking the "Like" button you will receive a daily update of discounts, sale, offers going on in Mumbai. LIKE IT.... SHARE IT...njoY.
Tuesday, January 20, 2009
Write a shell script to generate following series1,3,2,4,3,5,4,6,----100
Posted by ars at 5:58 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment