Chat with our AI personalities
echo "enter the number" if [ $# -ne 1 ] then echo "Usage: $0 number" echo " I will find reverse of given number" echo " For eg. $0 12321, I will print 12321" exit 1 fi n=$1 rev=0 sd=0 while [ $n -gt 0 ] do sd=`expr $n % 10` rev=`expr $rev \* 10 + $sd` n=`expr $n / 10` done echo "Reverse number is $rev"
The easiest way is to write the number and a factor of the number. 12 and 24 have an LCM of 24.
1055
0.00881
set totalfee = subtotal * 0.15