W.A.S.S to covert decimal number to any other base.
Program
# W.A.S.S to covert decimal number to any other base.
echo "Enter the no:"
read x
echo "Enter the input base:"
read i
echo "Enter the output base:"
read o
echo "output no:"
echo "ibase=$i;obase=$o;$x" | bc
Output
Enter the no:
16
Enter the input base:
10
Enter the output base:
2
output no:
10000