Any questions?
Reply Back New Topic
View Topic

如何分类 1007

1007 浏览:47 回复:0 赞:15 Started by Xawd 3 weeks ago

include<iostream>

include<cstdio>

using namespace std;
int main()
{

double a,b,x;
cin>>a>>b;
if(a!=0)
{
    if(b!=0)
    x=-b/a;
    else
    x=0;
    printf("%.4lf",x);
}
else cout<<"Input Error";
return 0;

}