#include <iostream>
#include<cmath>
using namespace std;
int main() {
double a(5.);
double b(-15.);
double c(10.);
double x,x1,x2;

double delta =b*b - 4*a*c;
    
if (delta >0){
    x1 = (-b + sqrt(delta))/2*a;
    x2 = (-b - sqrt(delta))/2*a;

    cout<<"Les racines sont : "<<x1<<" et "<<x2<<endl;
    }

else if (delta =0){
    x1 = (-b)/2*a;
    cout<<"La racine est "<<x;
    
    }





        

    


    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: