Results 1 to 3 of 3
Guys, how can i print table of 2 to 10 and there squares simultaneously in shell scripting? if any one can help i l b grateful to him/her....
- 04-24-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 2
Need help wid shell scripting
Guys, how can i print table of 2 to 10 and there squares simultaneously in shell scripting? if any one can help i l b grateful to him/her.
- 04-24-2009 #2Just Joined!
- Join Date
- Apr 2009
- Posts
- 90
try using the seq command
for MYNUM in `seq 2 10`; do
echo $[$MYNUM * $MYNUM]
done
- 05-02-2009 #3Just Joined!
- Join Date
- Apr 2009
- Posts
- 2
thanks a lot dude but i wanted to print multiplication table from 2 to 10 and den print their squares even some one gives me logic for that i l do it.. thanks ne way..


Reply With Quote