#include<iostream>
#include<cmath>
using namespace std;
int sroot(int i)
{
return sqrt (i);
}
long sroot(long l)
{
return sqrt (l);
}
double sroot(double d)
{
return sqrt (d);
}
int main()
{
int i=4;
long l=40000;
double d=4.84;
cout<<i<<"的二次方根是"<<sroot(i)
<<endl
<<l<<"的二次方根是"<<sroot(l)
<<endl
<<d<<"的二次方根是"<<sroot(d)
<<endl;
return 0;
}
渣渣作业1.2
最新推荐文章于 2020-04-09 14:06:23 发布