#include <stdio.h> #include <stdlib.h> #include <math.h> int main() { double c, f; while (scanf("%lf",&c) != EOF) { f = c*9 / 5 + 32; printf("摄氏度c=%.2f时,华氏度f=%.2f\n", c, f); printf("\n"); } return 0; }
posted on 2022-03-22 18:44 孙羽彤 阅读(17) 评论(0) 编辑 收藏 举报
博客园 Copyright © 2024 孙羽彤 Powered by .NET 9.0 on Kubernetes