LazySenpai Nov 13th, 2019 (edited) 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- while [ $x -ne 0 ]; do
- read input
- sum=`expr $sum + \`expr $input \* $input\``
- x=`expr $x - 1`
- echo $sum
RAW Paste Data