Computer Science, asked by kashish1439, 1 month ago

WRITE A PROGRAM TO CALCULATE THE AREA OF RECTANGLE WITH ARBITARY VALUES OF LENGTH AND BREATH

NO SPAMMING​

Answers

Answered by ItzMeSam35
2

//Program in Java

import java.util.*;

public class Rectangle

{

public static void main (String args[])

{

Scanner sc = new Scanner(System.in);

System.out.println("Please Enter The Length");

double L = sc.nextDouble();

System.out.println("Please Enter The Breadth");

double B = sc.nextDouble();

double Area = L * B ;

System.out.println("Area of Rectangle = "+Area);

sc.close();

}

}

Similar questions