Skip to content

Instantly share code, notes, and snippets.

@rafalw rafalw/main.cpp
Created Nov 6, 2018

Embed
What would you like to do?
Zadanie
#include <iostream>
#include <cmath>
using namespace std;
double delta(double a, double b, double c) {
// ...?
}
double rozw_x1(double d, double a, double b) {
// ...?
}
double rozw_x2(double d, double a, double b) {
// ...?
}
double rozw_x0(double a, double b) {
// ...?
}
int main(int argc, char** argv) {
double a = 0.0;
double b = 0.0;
double c = 0.0;
double x1 = 0.0;
double x2 = 0.0;
cout << "Podaj a, b i c: " << endl;
cin >> a;
cin >> b;
cin >> c;
if (a == 0) {
cout << "To nie jest równanie kwadratowe." << endl;
} else {
//...?
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.