大佬们,这个代码哪里错了
编写程序,从键盘输入一个摄氏温度,将其转换为华氏温度并输出。#include<stdio.h>
int main(void){
double f, c;
scanf("%lc", &c);
f=1.8*c+32;
printf("%f",f);
return 0;
}
2022-09-07 20:19
2022-09-07 20:36
2022-09-07 22:11
scanf("%lf", &c);//scanf("%lc", &c);
2022-09-08 08:23
2022-09-08 16:43