This is a simple C# Windows Forms application that solves a quadratic equation of the form:
ax² + bx + c = 0 The program takes coefficients
a,b, andcas input, calculates the discriminant D = b² - 4ac, and then displays the solutions based on the value of D: ##Logic
- If D > 0 → two real and distinct solutions
- If D = 0 → one real double root
- If D < 0 → two complex (imaginary) solutions
The app is built in Visual Studio (C#) using Windows Forms, with basic input validation and result display using TextBoxes and Labels.
##How to Use
- Enter values for
a,b, andcin the corresponding text fields. - Click "Реши" to calculate the solutions.
- The results will be shown in the lower fields:
- If real: solutions
x₁andx₂ - If imaginary: real and imaginary parts
- If real: solutions
- Click "Избриши" to clear all inputs and results.
- Discriminant logic
- Real & imaginary number support
- Error handling for invalid input
- Clean and easy-to-use UI
- Language: C#
- IDE: Visual Studio
- Framework: .NET Windows Forms
This project is licensed under the MIT License – see the LICENSE file for details.
