游客:  注册 | 登录 | 搜索 | 帮助
3s地带



标题: c语言编程
k0ishk
疾风
Rank: 4Rank: 4



UID 7889
精华 0
积分 395
帖子 130
现金 385
贡献值 0
阅读权限 40
注册 2007-8-24
c语言编程
麻烦帮写个答案
z=sinx+siny
输入x,y
经过sin相加运算得到结果z

顶部
广东南海人
疾风
Rank: 4Rank: 4



UID 7816
精华 0
积分 179
帖子 48
现金 169
贡献值 0
阅读权限 40
注册 2007-8-24
#include <stdio.h>
#include<math.h>

void main()
{
float x, y, z;
printf("Please Input x, y\n");
scanf("%f%f", &x, &y);
z=float(sin(x)+sin(y));
printf("%f\n", z);
}

  
顶部


 
当前时区 GMT+8, 现在时间是 2009-1-9 06:55 清除 Cookies - 联系我们 - 3S地带 - Archiver - WAP - 赣ICP备07006302号
Powered by Discuz! 5.5.0  © Processed in 0.027675 second(s), 6 queries , Gzip enabled