Skip to content

Commit d4bb989

Browse files
authored
Add files via upload
1 parent 28a08f4 commit d4bb989

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Arearectangle.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.Ccranjan;
2+
import java.util.Scanner;
3+
public class Arearectangle {
4+
public static void main(String[] args) {
5+
Scanner input = new Scanner(System.in);
6+
7+
System.out.println("Enter length and breadth of a triangle");
8+
double length = input.nextInt();
9+
double breadth = input.nextInt();
10+
11+
double area;
12+
area = length * breadth;
13+
14+
System.out.println("The area of given rectangle is:" +area );
15+
16+
}
17+
}

0 commit comments

Comments
 (0)