Advertisement
Guest User

Convertitore decimale-binario/ottale/esadecimale

a guest
Mar 2nd, 2020
1,754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. num = int(input("Inserisci il numero da convertire: "))
  2. print("Ecco i valori convertiti di ", num, ":")
  3. print(bin(num), "in binario.")
  4. print(oct(num), "in ottale.")
  5. print(hex(num), "in esadecimale.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement