#include
int main()
{
int i,j,k,n,count;
while(scanf("%d",&n)!=EOF)
{
for(i=1,count=0,k=0;count
count+=i; //每到i就意味着增加了i个数
for(j=0;j {
if(k
else
break;
}
}
printf("\n第%d项为:%d\n",n,i-1);
printf("====================\n");
}
return 0;
}
爱莫能助,谢谢