新手, 自己写了个程序,运行结果总是:-858993460,请大家帮忙看看,谢谢
# include <stdio.h># include <math.h>
int main()
{
int x,y;
int n,m,h;
printf("请输入坐标:\n",x,y);
scanf("%d %d", &x, &y);
n=fabs(x);
m=fabs(y);
if((n>=1&&n<=3) || (m>=1&&m<=3))
{
h=10;
printf("塔高为:%d\n",h);
}
else
{
h=0;
printf("塔高为:%d\n", h);
}
return 0;
}
[ 本帖最后由 墨落成白 于 2014-4-27 21:45 编辑 ]