partie1_ex23.py

Created by cahier-indice-algo-1techno

Created on April 22, 2022

142 Bytes


from math import pi

def volume(h):
    if h < 1:
        V = h
    else:
        V = 1 + pi * 0.16 * (h - 1)
    return V