write a Python Program to convert bits to Megabytes ,Gigabytes and Terabytes.
B = input ("Enter a bit ")
B = float (B)
KB = B / 1024
MB = B /(1024 * 1024)
GB = B /(1024 * 1024 *1024)
TB = B / (1024 * 1024 * 1024 * 1024)
print(B , "Kilobytes is :",KB)
print(B , "Megabytes is :",MB)
print(B , "Gigabytes is :",GB)
print(B , "Terabytes is :",TB)
for execution and output so check the video.
Comments
Post a Comment