// HEX 2 DECIMAL
// get the hex value in string
char szHexVal[50];
scanf("%s", szHexVal);
int n;
sscanf(szHexVal, "%d", &n);
Similar thing can do for the rest
Main Topics
Browse All TopicsHow can you make a program that would convert a decimal value to hexadecimal value and viseversa. And decimal value to octal value and viseversa?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
from 8 base to 2:
from right to left:
every octal digit is 3 binary digits
0-000
1-001
.
.
7-111
from 16 to 2
the same but every hex digit is 4 digits
0-0000
.
.
e-1110
f-1111
from 2 to 8 or 16
the reverse process
from 10 to 2
while (num>0)
divide to two. write the remenider in side.
example:
num reminder
17 1
8 0
4 0
2 0
1 1
0
the number is 10001 (from bottom up!)
(will work with other bases just divide to 3,4..)
from 2 to 10.
most right digit*1
+
next right digit*2
+
next right digit*4
.
.
equal the dec base.
Yair
No comment has been added lately and this question is therefore classified abandoned.
If asker wishes to close the question, then refer to
http://www.experts-exchang
Otherwise, I will leave a recommendation in the Cleanup topic area that this question is:
PAQed with 100:75 split between roshmon and yairy
Please leave any comments here within the next seven days. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Sunny
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: andrewjbPosted on 2002-10-04 at 11:35:26ID: 7314308
scanf and printf? Is this homework?