输入一弧度值x,输出正弦sin(x),余弦cos(x),用c++编译
答案:1 悬赏:30
解决时间 2021-03-24 15:48
- 提问者网友:她是我的お女人
- 2021-03-23 15:19
输入一弧度值x,输出正弦sin(x),余弦cos(x),用c++编译
最佳答案
- 二级知识专家网友:安稳不如野
- 2021-03-23 16:52
#include
#include
using namespace std;
void main()
{
double x;
cin >> x;
cout << "cos(x)=" << cos(x) << endl
<< "sin(x)=" << sin(x) << endl;
}
#include
using namespace std;
void main()
{
double x;
cin >> x;
cout << "cos(x)=" << cos(x) << endl
<< "sin(x)=" << sin(x) << endl;
}
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯