20

温度转换

https://ac.nowcoder.com/acm/problem/22004

include<bits/stdc++.h>

using namespace std;
int main()
{
double f,c;
cin>>f;
c=(f-32)*5/9;
printf("%.3lf",c);
}

全部评论
include前漏了#。 程序应该是: #include<cstdio> #include<cstdlib> #include<iostream> #include<cmath> using namespace std; int main() { double f; scanf("%lf", &f); printf("%.3f", 5.0/9*(f-32)); return 0; }</cmath></iostream></cstdlib></cstdio>
1 回复 分享
发布于 2024-10-26 19:54 上海

相关推荐

评论
6
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务