minecraft

#include <iostream>

// Function to calculate the volume of a Minecraft block
double calculateBlockVolume(double length, double width, double height) {
    return length  width  height;
}

int main() {
    // Declare variables for block dimensions
    double blockLength, blockWidth, blockHeight;

    // Prompt user for block dimensions
    std::cout << "Enter the length of the Minecraft block: ";
    std::cin >> blockLength;

    std::cout << "Enter the width of the Minecraft block: ";
    std::cin >> blockWidth;

    std::cout << "Enter the height of the Minecraft block: ";
    std::cin >> blockHeight;

    // Calculate the volume of the Minecraft block
    double blockVolume = calculateBlockVolume(blockLength, blockWidth, blockHeight);

    // Display the calculated volume
    std::cout << "The volume of the Minecraft block is: " << blockVolume << std::endl;

    return 0;
}