int fun (int n)
{
int I=1, s=1;
while (s<n)
s+=++I;
return I;
}
出自:国家开放大学数据结构复习题