so cw5

LazySenpai Nov 13th, 2019 (edited) 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x=$1
  2. while [ $x -ne 0 ]; do
  3.     read input
  4.     sum=`expr $sum + \`expr $input \* $input\``
  5.     x=`expr $x - 1`
  6. done
  7. echo $sum
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand