C语言程序运行错误
#include<stdio.h>voidmain(){intiMath,iEnglish;floatfAverage;iMath=80;iEnglish=88;fAve...
#include<stdio.h>
void main()
{int iMath,iEnglish;
float fAverage;
iMath=80;
iEnglish=88;
fAverage=(iMath+iEnglish)/2.0;
printf("The acerage is%f",faverage);
getch();
} 展开
void main()
{int iMath,iEnglish;
float fAverage;
iMath=80;
iEnglish=88;
fAverage=(iMath+iEnglish)/2.0;
printf("The acerage is%f",faverage);
getch();
} 展开
1个回答
展开全部
打印一行的
fAverage被打错成了faverage
其他的没什么问题
如果还有错误,就把getch改成getchar
#include<stdio.h>
void main()
{
int iMath,iEnglish;
float fAverage;
iMath=80;
iEnglish=88;
fAverage=(iMath+iEnglish)/2.0;
printf("The acerage is%f",fAverage);//这里打错了,
getchar();
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询