#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=12;
long l=1234;
double d=1.23;
cout<<i<<'*'<<i<<'='<<sroot(i)<<endl;
cout<<l<<'*'<<l<<'='<<sroot(l)<<endl;
cout<<d<<'*'<<d<<'='<<sroot(d)<<endl;
return 0;
}
作业2.30
最新推荐文章于 2024-06-14 17:39:29 发布