std::cout << "Enter the volume of information in bytes: "; std::cin >> A; int bits = A * 8; double kilobytes = A / 1024.0; std::cout << A << " bytes is equal to " << bits << " bits" << std::endl; std::cout << A << " bytes is equal to " << kilobytes << " kilobytes" << std::endl; return 0;
int main() {
std::cout << "Enter the volume of information in bytes: ";int A;
std::cin >> A;
int bits = A * 8;
double kilobytes = A / 1024.0;
std::cout << A << " bytes is equal to " << bits << " bits" << std::endl;
std::cout << A << " bytes is equal to " << kilobytes << " kilobytes" << std::endl;
return 0;
}