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

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