Hi people! I just want to get the sum, max number, average and multiplication of array with n numbers!

I already make the sum, but I tried different operators, ways for others and I can't get the another task without errors! Any help! Im really noobie on this Look!

```
#!/bin/bash
echo Input some numbers, separated by a space please:
read -a choice
for a in ${!choice[*]}
do
((sum+=choice[a]))
done
echo The result after adding all numbers is: $sum
```