What do you want to save?
Add Code snippet
New code examples
-
C 2022-01-22 15:11:19
decimal to binary & vice versa in c program.pdf
Select conversion: 1. Decimal to binary. 2. Decimal to octal. 3. Decimal to hexadecimal. 4. Exit. Enter your choice: 1 Enter a number: 7 Result = 111 Select conversion: 1. Decimal to binary. 2. Decimal to octal. 3. Decimal to hexadecimal. 4. Exi... Add solution -
Python 2021-10-28 19:27:17
python convert binary / hexadecimal / decimal to binary / hexadecimal / decimal
## First install the module coden with pip in cmd # pip install coden ## import module import coden ## Convert # Binary to Decimal ans = coden.bin_to_int(number) # Binary to Hexadecimal ans = coden.bin_to_hex(number) # Hexadecimal to Decimal ans = cod... Add solution -
Javascript 2021-09-22 17:29:04
convert decimal to hex
// function to convert decimal to hexadecimal function convertToHex(element,index,array) { return element.toString(16); } var decArray = new Array(23, 255, 122, 5, 16, 99); var hexArray = decArray.map(convertToHex); alert(hexArray); // 17,ff,a,5,10,63 Add solution