要求写分段函数但每次结果都为0看不出那错了请各位友人看一看?
scanf不能这样写,改为如下语句:
printf("input:"); scanf("%d",&x);
scanf里不要写input:,应该是:printf("input:");scanf("%d",&x);