Untitled

 avatar
unknown
plain_text
a year ago
264 B
4
Indexable
#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;
}
Editor is loading...
Leave a Comment