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
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
Computer Science,
2 days ago
English,
4 days ago
Physics,
4 days ago
Science,
8 months ago
Chemistry,
8 months ago