Question about Operating Systems

1 Answer

A c prog to convert decimal to hexadecimal number.

I need a c or c++ programming to convert a decimal number to hexadecimal

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Corporal:

    An expert that hasĀ over 10 points.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 13 Answers

Sure, here you go:

int main(void) {
int input;
printf("Enter a decimal number: ");
scanf("%d", &input);
printf ("In hexadecimal, that is: %X\n\n", input);
return 0;
}

Posted on Oct 06, 2008

  • Josh Anders
    Josh Anders Oct 06, 2008

    Oh, and add "#include " to the top. The new code should read:



    #include

    int main(void) {
    int input;
    printf("Enter a decimal number: ");
    scanf("%d", &input);
    printf ("In hexadecimal, that is: %X\n\n", input);
    return 0;
    }



×

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2 Answers

How to convert a binary to text


Letters can be converted into decimal number using ASCII table. Every Character has it own equivalent number. Once converted into decimal (base 10), I could be easily converted into binary (base 2)
You could also use applications or web based applications such as ASCII to binary converter to help you convert it.

Jul 22, 2011 | Operating Systems

Tip

TURN ON YOUR PC IN JUST 10seconds


Click on the start button then press R it will take u to Run well go to run
n type Regedit
press enter
this will open Registery Editor
now look for the key

HKEY_LOACAL_MECHINE\SYSTEM\CurrentControlSet\Contr ol\ContentIndex

now there find the Key Called
"Startup Delay"
Double Click On It
Now where its Base
Click Decimal
Now its Default Value Is 4800000 (75300:hexadecimal)
Change The Value To 40000
here u go u have done it
now close the Registery Editor and Restart Your Computer
You'll See The Result

USE @ your own risk
01010110 G.I.G hacker 0101010
www.gighacker.blogspot.com

on Feb 12, 2010 | Operating Systems

1 Answer

Define algebra:decimal


Decimal is the base-10 notational system for representing real numbers. The expression of a number using the decimal system is called its decimal expansion, examples of which include 1, 13, 2028, 12.1, and 3.14159.

Each of the arabic numerals 0 to 9 is called a decimal digit, and the period placed to the right of the units place in a decimal number is called the decimal point (or, in the case that a comma is instead used for this purpose, the decimal comma).


The decimal is a way of managing numbers that has ten as a starting point, or base. It is sometimes called the base ten or denary numeral system. The word "decimal" is also used instead of the word "period" to point out the dot that is sometimes used separates the positions of the numbers in this system. Almost everyone uses this nowadays and prefers the convenience of it probably because it shows up most often in calculations in nature and has "one" as another starting point for the system. The number one is usually the easiest to work with in calculations.




You may go to the link below for decimal tutorial:


http://www.algebra1help.com/flash/noflash/3.html

Jun 16, 2011 | Operating Systems

1 Answer

I have the home eddition and want to make and using Movie maker- How can I convert the files from AVI to DVD without buying a program


I dont think you can change AVI to DVD without any prog but there are lot of free programes are avaleable on internet you should browse these

Nov 19, 2009 | Microsoft Windows Vista Ultimate Edition

1 Answer

Programming in c


To convert numbers you can use the printf() function
printf("%d", x'FF') hex to decimal
printf("%o", x'FF') hex to octal

If you want to save the value in another variables use sprintf
e.g

a = x'FF';
b = sprintf("%d",a)


Jan 15, 2009 | Operating Systems

1 Answer

C++ programs using class declaration


a c++ program to convert decimal numbers to other number systems

Dec 22, 2008 | Operating Systems

1 Answer

C++ program for the conversion of decimal numbers to hexadecimal


all your solution is at
http://www.c.happycodings.com/Beginners_Lab_Assignments/code18.html

Dec 07, 2008 | Operating Systems

1 Answer

C ++


Nice try! Find an upper-class student to give you one-on-one tutoring with your homework assignment.

Sep 19, 2008 | Operating Systems

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

104 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18297 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...