If a five digit number is input through the keyboard, write a program to calculate the sum of its digits.
echo "Enter five digit number " read no total=0 while [ $no -ne 0 ] do temp=`echo $no % 10 | bc` total=`echo $total + $temp | bc` no=`echo $no / 10 | bc` done echo "Total of digit is : $total"