Find the perimeter of a cylinder | Java program to find perimeter of cylinder ; Function to calculate perimeter ; Driver program to test above function
import java . io . * ; class GFG { static int perimeter ( int diameter , int height ) { return 2 * ( diameter + height ) ; } public static void main ( String [ ] args ) { int diameter = 5 ; int height = 10 ; System . out . println ( " Perimeter ▁ = ▁ " + perimeter ( diameter , height ) + " unitsNEW_LINE"); } }