简略的 自改 数据输入
简单的 自改 数据输入
/* Note:Your choice is C IDE */
#include "stdio.h"
void main()
{
float f,c;
printf("please input f:");
scanf("%f,&f");
c=5.0/9*(f-32);
printf("c=%f",c);
}
就是这样,输入后无法得出结果。准确来说是程序错误,。
不知道哪里错误, 求解
------解决方案--------------------
/* Note:Your choice is C IDE */
#include "stdio.h"
void main()
{
float f,c;
printf("please input f:");
scanf("%f,&f");
c=5.0/9*(f-32);
printf("c=%f",c);
}
就是这样,输入后无法得出结果。准确来说是程序错误,。
不知道哪里错误, 求解
------解决方案--------------------
scanf("%f,&f");
scanf("%f",&f);