A simple C# program that calculates the area and perimeter of geometric shapes: circle, rectangle, and triangle.
The project consists of the following files:
IFormeGeometriche.cs: Interface defining theCalcArea()andCalcPerimetro()methods.Cerchio.cs: Class for circles, implementingIFormeGeometriche.Rettangolo.cs: Class for rectangles, implementingIFormeGeometriche.Triangolo.cs: Class for triangles, implementingIFormeGeometriche.Program.cs: Main program file, allowing the user to choose a geometric shape and calculate its area and perimeter.
- Variable names and printed messages are in Italian.
- The program expects user input in Italian (e.g., "inserisci la base" means "insert the base").
- The calculations and logic follow standard mathematical formulas.
- .NET SDK installed on your system.
To execute the program, open a terminal in the project folder and run:
dotnet run