Homeunix Bash shell script to find sum of digits Vikram somai January 24, 2021 0 Comments Facebook Twitter Bash shell script to find sum of digits echo "enter the number"read nrev=0while [ $n -gt 0 ]dotmp=$(( $n % 10 ))n=$(( $n / 10 ))rev=$(( $rev + $tmp ))doneecho $revoutput:- Tags unix Facebook Twitter
Post a Comment
If you have any doubts, Please let me know
Thanks!