// Program: Calculating x and y
// Author: Your Name
// Date Written: Date
/* Abstract: This program calculates the values of x and y using the formulas x = (b2- 4ac) / 2a and y = (-b + (b2- 4ac)) / 2a */
#include <iostream>
using namespace std;
int main()
{
// Declare variables
int a, b, c;
double x, y;
// Prompt user for values of a, b and c
cout << "Please enter values for a, b and c: ";
cin >> a >> b >> c;
// Calculate values of x and y
x = (b*b - 4*a*c) / (2*a);
y = (-b + (b*b - 4*a*c)) / (2*a);
// Display values of x and y
cout << "The value of x is: " << x << endl;
cout << "The value of y is: " << y << endl;
return 0;
}