求帮忙解决这道c语言的题

2025-06-26 13:36:50
推荐回答(1个)
回答1:

while(s<=x){
s+=n*n;
n++;
}
printf("%d\r\n", s);