# -*- encoding: utf8 -*-

# Fonction calculant le volume d'une boîte

def volBoite(x1=-1, x2=-1, x3=-1):
    "volBoite(float x1, float x2, float x3) --> float renvoie le volume d'un parallélépipède"

    if x2 == -1:
        return x1**3
    elif x3 == -1:
        return x1**2 * x2
    else:
        return x1*x2*x3
