Exbibytes

Report a typo

A bit is the main and the smallest unit of information. Though, we often use other units of information to measure large amounts of data.

The table below shows some units and the correspondence between them:

1 Byte 232^3 Bit 8 Bit
1 Kibibyte 2132^{13} Bit 8 192‬ Bit
1 Mebibyte 2232^{23} Bit 8 388 608‬ Bit
1 Gibibyte 2332^{33} Bit 8 589 934 592‬ Bit
1 Tebibyte 2432^{43} Bit 8 796 093 022 208‬ Bit
1 Pebibyte 2532^{53} Bit 9 007 199 254 740 992 Bit
1 Exbibyte 2632^{63} Bit 9 223 372 036 854 775 808‬ Bit

Write a program that reads an integer number of exbibyte and converts this amount of information into bits.

Sample Input 1:

1

Sample Output 1:

9223372036854775808
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic