I want the code of program that convert from "decimal to hexadecimal "and from "hexadecimal to decimal " in console applicathion
Egypt Pharaoh
0
Light Poster
Recommended Answers
Jump to PostOff course you can always save you the trouble of doing it yourself and use format specifiers like this:
int value = 32767;
Console.WriteLine("{0,10:G}: {0,10 : X}", value);
Which will output:32767: 7FFF
All 4 Replies
Egypt Pharaoh
0
Light Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
hieuuk
0
Light Poster
NightCrawler03X
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.