实验任务2-3

#include <stdio.h>
#include <math.h>

int main()
{
    double C,F;

    while(scanf("%lf", &C) !=EOF)
    {
        F=9*C/5+32;
        printf("摄氏度c=%.2f时,华氏度f=%.2f\n", C, F);
        printf("\n");

    }
    
    return 0;
}

 

posted @ 2022-03-28 21:29  刘登艳  阅读(18)  评论(0)    收藏  举报