Calculates Area of a Rectangle in C#
This is a simple console application written in C# that calculates the area of a rectangle. The user is prompted to enter the length and width of the rectangle, and the application calculates and displays the area based on the provided inputs.
-
Clone the Repository
Clone the repository to your local machine using the following command:
git clone https://github.com/Csyntax/RectangleAreaCalculator.git
-
Navigate to the Project Directory
cd RectangleAreaCalculator
-
Build the Project
Open a terminal or command prompt in the project directory and run the following command to build the project:
dotnet build
-
Run the Application
After building the project, run the application using the following command:
dotnet run
-
Follow the Prompts
The application will prompt you to enter the length and width of the rectangle. Enter positive numbers for both values to get the area.
Enter the length of the rectangle: 5 Enter the width of the rectangle: 3 The area of the rectangle is: 15
If you would like to contribute to this project, please fork the repository and submit a pull request. We welcome any improvements or additional features.