其他分享
首页 > 其他分享> > 实验任务2-3

实验任务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;
}

 

标签:lf,%.,华氏度,2f,任务,实验,printf,include
来源: https://www.cnblogs.com/liudenger/p/16069214.html