Skip to content

We have a number in a decimal number, and we have to convert it into a binary, octal, and hexadecimal number. We will use a function for converting decimal numbers to binary numbers, decimal numbers to octal numbers, and decimal numbers to hexadecimal numbers.

License

Maanyu/Convert-Decimal-to-Binary-Octal-and-Hexadecimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Convert-Decimal-to-Binary-Octal-and-Hexadecimal

We have a number in a decimal number, and we have to convert it into a binary, octal, and hexadecimal number. We will use a function for converting decimal numbers to binary numbers, decimal numbers to octal numbers, and decimal numbers to hexadecimal numbers.

Example:

Input: 64
Output:
64 in Binary: 0b1000000
64 in Octal: 0o100
64 in Hexadecimal: 0x40

Input: 312
Output:
312 in Binary: 0b100111000
312 in Octal: 0o470
312 in Hexadecimal: 0x138.

About

We have a number in a decimal number, and we have to convert it into a binary, octal, and hexadecimal number. We will use a function for converting decimal numbers to binary numbers, decimal numbers to octal numbers, and decimal numbers to hexadecimal numbers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages