A console application written in C#/.NET that:
- 🎯 Determines the type of a triangle (equilateral, isosceles, scalene)
- ➕ Calculates perimeter and area
- 🎛️ Written as a mini‑project (CPE1130 Programming Logic and Design)
-
Clone the repository:
git clone https://github.com/ClanyX/Triangle.git cd Triangle -
Open the solution in Visual Studio or use the CLI (.NET SDK):
dotnet build
Note: This project is written in C# and likely targets .NET (
net6.0,.NET Framework, etc.). Adjust based on the version in your.csprojfile.
Run the application (e.g., via terminal):
dotnet run --project TriangleThen follow the console instructions:
-
Enter the lengths of the three sides (e.g.,
3 4 5) -
The app will validate if a triangle can be formed, and if so:
- It prints the triangle type
- Calculates and displays the perimeter
- Calculates and displays the area
Enter side lengths: 3 4 5
→ Triangle type: Scalene
→ Perimeter: 12
→ Area: 6
Enter side lengths: 5 5 5
→ Triangle type: Equilateral
→ Perimeter: 15
→ Area: 10.825...
Form1.cs– main logic, input/output, and calculationsTriangle– class for triangle validation and computations- (add brief description of any other files if needed)
- Fork this repository
- Create a new branch (
git checkout -b feature/your-feature-name) - Make your changes and commit (
git commit -am 'Add new feature') - Submit a pull request
This project is licensed under the MIT License.
Created with 💻 by ClanyX