0&&n" />
#includeintmain(){intn,i,sum=0;while(1)//这里最好加上对于n的判断{printf("plaeseinput:");scanf("%d",&n)
;if(n>0&&n<100)break;elseprintf("errorinput!\n");}for(i=1;i<=n;i++){if(i%7==0)continue;//这里用i,不是n!!!!!!!
if((i%10==7)||(n/10==7))continue;//这里用i,不是n!!!!!!!
sum+=i*i;}printf("%d\n",sum);return0;}