Advertisement
Guest User

Convertitore decimale-binario/ottale/esadecimale

a guest
Mar 2nd, 2020
760
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement