Find the perimeter of a cylinder | Function to calculate perimeter ; Driver Function
function perimeter ( diameter , height ) { return 2 * ( diameter + height ) ; } let diameter = 5 ; let height = 10 ; document . write ( " " + perimeter ( diameter , height ) + " " ) ;