C# How To Calculate the Area of a Rectangle
Area of Rectangle
The area of a rectangle is its length multiplied by its width:
Example
int length = 5;
int width = 3;
int area = length * width;
Console.WriteLine("Area of the rectangle: " + area);
Explanation:
The * operator multiplies the length (5) by the width (3), and the result (15) is stored in area.