//定义4个变量
i = 1
n = 1
m = 1
x = 1
当 i >= 0.0001 //循环控制
{
m = m*(n+1/n) //计算你给的公式
i = 1/n //判断最后一项是否小于0.0001
n = n+1
}
//END