平方根,又叫2次方根,在c++中是sqrt,那该怎么求了??
#include<bits/stdc++.h>
using nmaespace std;
int amin()
{
int n;
cin>>n;
n=sqrt(n);
cout<<n;
}
它的头文件是
#include<cmath>
但是,我们用了“万能头文件”
平方根,又叫2次方根,在c++中是sqrt,那该怎么求了??
#include<bits/stdc++.h>
using nmaespace std;
int amin()
{
int n;
cin>>n;
n=sqrt(n);
cout<<n;
}
它的头文件是
#include<cmath>
但是,我们用了“万能头文件”