└── README.md /README.md: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Main { 3 | public static void main(String[] args){ 4 | Scanner sc = new Scanner(System.in); 5 | System.out.print("Enter the Length: "); 6 | double length = sc.nextDouble(); 7 | System.out.print("Enter the Breadth: "); 8 | double breadth = sc.nextDouble(); 9 | double perimeter = 2 * (length + breadth); 10 | System.out.println("Perimeter: " + perimeter); 11 | } 12 | } 13 | --------------------------------------------------------------------------------