欢迎访问我的独立博客
摘要: 第一题:输入实数x,按下列公式计算并输出x和y的值(保留两位小数)答案:#include <math.h>#include <stdio.h>int main(){ float x, y; scanf("%f", &x); if (x <= 0) { y = sin(x); } else if (x <= 10) { y = x*x + 1; } else { y= 1.0/(x*x*x + x*x + 1); } printf("x = %.2f,y = %.2f\n", x... 阅读全文
posted @ 2012-11-12 22:40 github.com/starRTC 阅读(735) 评论(0) 推荐(0) 编辑
摘要: 加载中... 阅读全文
posted @ 2012-11-12 22:36 github.com/starRTC 阅读(140) 评论(0) 推荐(0) 编辑