Program to convert bits to Megabyte, Gigabyte and Terabyte.

Code:

bits = int(input("Please enter bits: "))

kb = bits / 8000;

mb = kb / 1000;

gb = mb / 1000;

tb = gb / 1000;

print(kb, " KiloBytes")

print(mb, " MegaBytes")

print(gb, " GiGaBytes")

print(tb, " TeraBytes")

Output:

Comments

Popular posts from this blog

State use of pep and pip