Untitled

mail@pastecode.io avatar
unknown
plain_text
22 days ago
264 B
1
Indexable
Never
#include <iostream>
#include<cmath>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
int d;
d=(b*b) - (4*a*c);
if(d==0){cout<<"Only one solution";}

else if(d<0){cout<<"No solution";}

else if(d>0){cout<<"have two solution";}

return 0;
}
Leave a Comment