I have checked my code many a time and according to me it is fine.
but i am having test case 1 failed
also pls tell how do i know what are test cases
I have checked my code many a time and according to me it is fine.
but i am having test case 1 failed
how to send the code directly
@madhuragarwal2027_a8d8220ac96f9af4, u can save it on Cb online portal, ide.codingblocks.com and send me the link
sir kindly see are you able to see the code as i am not able to do save it on cb online portal
sir i am not able to put the code from cb protal
#include
#include<math.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<"\n";
int d=(bb)-(4a*c);
if(a>=-100 && a<=100 && b>=-100 && b<=100 && c>=-100 && c<=100 ) {
if( d>0){
cout<<"Real and Distinct"<<"\n";
int r=(-b+sqrt(d))/(2*a);
int t=(-b-sqrt(d))/(2*a);
if(r>t){
cout<<t<<" "<<r<<endl;
}
else{
cout<<t<<" "<<r<<endl;
}
}
else if(d==0){
cout<<"Equal"<<"\n";
int l=(-b)/(2*a);
cout<<l<<" "<<l<<endl;
}
else{
cout<<"Imaginary"<<endl;
}
}
return 0;
}
hi @madhuragarwal2027_a8d8220ac96f9af4,
instead of “Equal” write “Real and Equal”, else code is correct 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.