Find the volume of a cone whose radius and height are provided as parameters to the function `volume`. Use the value of PI provided by your language (for example: `Math.PI` in JS, `math.pi` in Python or `Math::PI` in Ruby) and round down the volume to an Interger.

If you complete this kata and there are no issues, please remember to give it a ready vote and a difficulty rating. :)

Difficulty: introductory

Starter code:

def volume(r,h):
	

Solutions:
from math import pi

def volume(r,h):
    return pi * r**2 * h // 3

from math import pi


def volume(r, h):
    return int(pi * r ** 2 * h / 3)

from math import pi,floor

def volume(r,h):
    return floor(h/3 * pi * r ** 2)

from math import pi
def volume(r,h):
    return (pi*h*r**2)//3

import math
def volume(r,h):
    return math.pi * r ** 2 * h // 3

from math import pi
def volume(r,h):
    return int(pi*r*r*h/3)

import math 
def volume(r,h):
    return math.floor((1/3*math.pi)*(r**2)*h)

from math import pi

def volume(r,h):
    return int(1/3 * pi * r**2 * h)

volume=lambda r,h:__import__('math').pi*r*r*h//3

def volume(r,h):
    
# =============================================================================
#     This function calculates the Volume of a cone using the formulae 
#     π x r² x h/3, and returns the result as a rounded down integer.
# =============================================================================

    import math
    
    return math.floor(math.pi * r**2 * h/3)