摘要: #include #includeint main() { int s; const double pi=acos(-1); double a,b; while(scanf("%ld",&s)!=EOF) { a=sin(s*pi/180); b=cos(s*pi/180); printf("%.2f\n%.2f\n",a,b); ... 阅读全文
posted @ 2018-09-28 23:31 Estwind 阅读(1575) 评论(0) 推荐(0) 编辑
摘要: #include int main() { float c,f; while(scanf("%f",&f)!=EOF) { c=(f-32)*5.0/9; printf("%.3f\n",c); } return 0; } 阅读全文
posted @ 2018-09-28 18:21 Estwind 阅读(532) 评论(0) 推荐(0) 编辑
摘要: #include int main() { float f,c; while(scanf("%f",&f)!=EOF) { c=(f-32)*5.0/9; printf("fahr=%f,celsius=%f\n",f,c); } return 0; } 阅读全文
posted @ 2018-09-28 18:06 Estwind 阅读(555) 评论(0) 推荐(0) 编辑
摘要: #include int main() { double a,b,c; while(scanf("%lf %lf %lf",&a,&b,&c)!=EOF) { printf("%.3f\n",(a+b+c)/3); } return 0; } 阅读全文
posted @ 2018-09-28 17:53 Estwind 阅读(681) 评论(0) 推荐(0) 编辑