task2--3

#include<stdio.h>
#include<math.h>
int main()
{
    double F, C;
    while (scanf("%lf", &C) != 0)
    {
        F = 9 * C / 5 + 32;
        printf("摄氏度C=%.2f时,华氏度F=%.2f", C, F);
        printf("\n");

    }
    return 0;
}

 

posted @ 2022-03-24 08:24  车马萧萧  阅读(28)  评论(0)    收藏  举报