Shell script to convert decimal no. to any other base no., Programming Languages

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

Posted Date: 9/26/2012 4:48:05 AM | Location : United States







Related Discussions:- Shell script to convert decimal no. to any other base no., Assignment Help, Ask Question on Shell script to convert decimal no. to any other base no., Get Answer, Expert's Help, Shell script to convert decimal no. to any other base no. Discussions

Write discussion on Shell script to convert decimal no. to any other base no.
Your posts are moderated
Related Questions
looking for help with a flash game assignment.

Dynamic Binding: - Binding refers to the linking of a procedure call to the code to be executed in response to the call. Dynamic binding (late binding) means that the code associa

how to create a screen for messages for a data transmission system

You are to write a program that determines the day of the week for New Year's Day in the year 3000. To do this, you must create your own date class (MyDate) and use the following i

Show that we can represent pairs of nonnegative integers using only numbers and arithmetic operations if we represent the pair a and b as the integer that is the product 2 a 3 b .

Determine the moment of force about the point where a bracket is attached to a wall. the bracket is shown in figure attached. it extends 10 inched out from the wall and 5 inched up

how to store multidimensional array in a single column in mysql database using MATLAB?

Am unable to write to file of type=file in perl script.It does not have any extension.Help me..


JavaScript is "Object Oriented" like C++ or Java. (Note that Java and JavaScript are not the same language, which is a common misconception) It also has variables, which makes Java