int main(){ int x = 0; scanf("%d", &x); if (x > 999 || x < 0) { printf("输入错误,请输入0至999的整数");
exit(-1); } printf("\nThe result:\t",fun(x)); return 0;}