#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int sroot(int a)
{
return sqrt(a);
}
long sroot(long b)
{
return sqrt(b);
}
double sroot(double c)
{
return sqrt(c);
}
int main()
{
int d=4;
long e=888;
double f=3.14;
int D=sroot(d);
long E=sroot(e);
double F=sroot(f);
cout<<D<<setw(5)<<E<<setw(8)<<F<<endl;
return 0;
}
第二单元作业 2.30
最新推荐文章于 2024-06-14 23:25:44 发布