dev c++编译C语言代码问题
#include<stdio.h>#include<stdlib.h>#defineFREEZING_PT32.0f#defineSCALE_FACTOR(5.0f/9....
#include <stdio.h>
#include <stdlib.h>
#define FREEZING_PT 32.0f
#define SCALE_FACTOR (5.0f / 9.0f)
int main(void)
{
float fashrenheit, celsius;
printf("Enter Fashrenheit temeprature:")
scanf("%f", &fashrenheit);
celsius = (fashrenheit - FREEZING_PT) * SCALE_FACTOR;
printf("Celsius equivalent: %.lf\n", celsius);
return 0;
出错信息:
13 syntax error before "scanf"
请问下哪里出错了呢? 展开
#include <stdlib.h>
#define FREEZING_PT 32.0f
#define SCALE_FACTOR (5.0f / 9.0f)
int main(void)
{
float fashrenheit, celsius;
printf("Enter Fashrenheit temeprature:")
scanf("%f", &fashrenheit);
celsius = (fashrenheit - FREEZING_PT) * SCALE_FACTOR;
printf("Celsius equivalent: %.lf\n", celsius);
return 0;
出错信息:
13 syntax error before "scanf"
请问下哪里出错了呢? 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询