Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions area_of_rectangle.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import java.util.Scanner;
class AreaOfRectangle
{
public static void main(String args[])
{

Scanner s= new Scanner(System.in);

System.out.println("Enter the length:");
double l= s.nextDouble();
System.out.println("Enter the breadth:");
double b= s.nextDouble();


double area=l*b;
System.out.println("Area of Rectangle is: " + area);
}
}