Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=$1
- while [ $x -ne 0 ]; do
- read input
- sum=`expr $sum + \`expr $input \* $input\``
- x=`expr $x - 1`
- done
- echo $sum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement