Computer Science, asked by tinnixyz123, 8 months ago

write a program in python to enter a number and display its hex and octal equivalent and its square root...plz give me the answer quickly​

Answers

Answered by tanukazi7786
4

Explanation:

dec = int(input("Enter a decimal number: "))

print(bin(dec),"in binary.")

print(oct(dec),"in octal.")

print(hex(dec),"in hexadecimal."

Hope this helps u

Similar questions