#include<iostream>
#include<cmath>//要用到tan的函数
using namespace std;
main()
{
float x;
cout<<"请输入一个角的弧度制,来求角的正切"<<endl;
cin>>x;
cout<<"tanx="<<tan(x)<<endl;
system("pause");
return 0;
}
c++求一个弧度角的正切tan
最新推荐文章于 2024-08-12 16:55:46 发布