This simple web application allows users to calculate the area of a circle by providing a radius value. The result is displayed on the page, and the input field and submit button are removed for a clean presentation.
🔎 https://3-areaofcircle.netlify.app/To use this web application, follow these steps:
-
Clone this repository to your local machine or download the files.
-
Open the
index.htmlfile in your web browser. -
You will see an input field to enter the radius and a "Calculate" button.
-
Enter a numeric value for the radius of the circle in the input field.
-
Click the "Calculate" button.
-
If you enter an empty value or zero, an alert will inform you that it's not a valid input.
-
If a valid radius is entered, the area of the circle is calculated and displayed on the page, rounded to two decimal places.
-
The input field and "Calculate" button are removed after displaying the result.
If you'd like to contribute to this project, feel free to fork the repository, make your changes, and submit a pull request. We welcome contributions!
This project is licensed under the MIT License. You are free to use, modify, and distribute the code as per the terms of the license.