task2_3.c

#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编辑  收藏  举报

导航