Sum of Digits using [Shell Program] Get link Facebook X Pinterest Email Other Apps March 24, 2015 echo "Enter anumber: \c"read num sum=0while [ $num -ne 0 ]dox=`expr $num %10`sum=`expr $x +$sum`no=`expr $num /10` doneecho "The sum ofdigits are :"$sum Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment