Computer Science, asked by kushalreddy6363, 1 month ago

write a program to calculate are of the rectangular java ​

Answers

Answered by paluthakur
0

Answer:

Area of a rectangle is the amount of space occupied by the rectangle. A rectangle can be defined as the plain figure with two adjacent sides equal in length. The 4 angles present in the rectangle are also equal. A rectangle can be divided into 4 similar square. The measurement of each interior angle in a rectangle is 90 degrees.

Area of a rectangle is the number of square units takes to fill a rectangle completely.

Formula .. A= W x H

where

A is the area of the rectangle

W is the width of the rectangle

H is the height of the rectangle

Java Program;

1 public class rectangle{

2 public static void main(String args[])

3 {

4 int width=5;

5 int height=10;

6 int area=width*height;

7 System.out.println("Area of rectangle="+area);

8 }

Answered by ananyanaskar28
0

Answer:

Java Program

public class rectangle{

public static void main(String args[])

{

int width=5;

int height=10;

int area=width*height;

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

}

Explanation:

Similar questions