Find the answer to your Linux question:
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....
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    2

    Question 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.

  2. #2
    Just Joined!
    Join Date
    Apr 2009
    Posts
    90
    try using the seq command
    for MYNUM in `seq 2 10`; do
    echo $[$MYNUM * $MYNUM]
    done

  3. #3
    Just 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..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...