Write a shell script which will accept different numbers and find sum of its digit.

echo ” Enter any number “
read i
sum1=0
sd=0
while [ $i -gt 0 ]; do
            sd=$(( $i % 10 ))
            i=$(( $i / 10))
            sum1=$(( sum1 + sd ))
done
echo ” The summation of number is  $sum1 “