Skip to content

Csyntax/RectangleAreaCalculator

Repository files navigation

RectangleAreaCalculator

Calculates Area of a Rectangle in C#

Rectangle Area Calculator

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.

How to Use

  1. Clone the Repository

    Clone the repository to your local machine using the following command:

    git clone https://github.com/Csyntax/RectangleAreaCalculator.git
    
  2. Navigate to the Project Directory

    cd RectangleAreaCalculator

  3. Build the Project

    Open a terminal or command prompt in the project directory and run the following command to build the project:

    dotnet build

  4. Run the Application

    After building the project, run the application using the following command:

    dotnet run

  5. 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.

Example Usage

Enter the length of the rectangle: 5 Enter the width of the rectangle: 3 The area of the rectangle is: 15

Contributing

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.

About

Calculates Area of a Rectangle in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages