Computer Science, asked by Anonymous, 4 days ago

Write a program which first converts Binary number to Hexadecimal number then convert that Hexadecimal number into Octal number and Decimal number (In Python and c++)​

Answers

Answered by kkirti1515
0

Answer:

It's fairly straightforward to do the conversion from binary in pure bash (echo and printf are builtins):

Binary to decimal

$ echo "$((2#101010101))"

341

Binary to hexadecimal

$ printf '%x\n' "$((2#101010101))"

155

Going back to binary using bash alone is somewhat more complex, so I suggest you see the other answers for solutions to that.

Explanation:

hope it will help you

MARK ME AS BRAINLIESTS ANSWER

plz plz I am in need plz plz

Similar questions
Math, 8 months ago