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
Support for Multi-Targeting The multi-targeting function of Vision Facilities allows you specify the particular edition or account of the .NET Structure that is required for your p

Suppose you have a ?le orase of city and country names, like this: Cluj, Romania Debrecen, Hungary Klagenfurt, Austria Berlin, Germany Szeged, Hungary Budapest, Hungary Lintz, A

Overview Goals: The goals for this assignment are Design and implement instantiable classes. Use arrays of objects. Read from and write to files. Implement basic

Area Under Curve Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve be

maake a programme in C of HR system

The first task is to extend the  NeoPhoneBookEntry and  NeoPhoneBook classes to accommodate for  four additional contact  details:  Ringtone,  Vibration Pattern,  Led Pattern  and

do you solve questions of assigments?

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Write a script called 'prob2.m' that asks the user if they wish to clear the variables in the workspace. If the user responds with the strings 'y' or 'yes' then the workspace shoul

You are to build a Schema in XML Schema Language that will be used to support the development of the new central course information management system and other supporting applicati