explain binary, octal, hexadecimal with print examples
Please answer fast
Answers
Answered by
4
Answer: Binary system is used because computers only understand binary numbers (0 and 1). Octal System: Octal system is base 8 number system....See this example:dec = int(input("Enter a decimal number: "))print(bin(dec),"in binary.")print(oct(dec),"in octal.")print(hex(dec),"in hexadecimal."
Hope this answer helps you ☺️ Please mark it as brilliant.
Similar questions