d=inputbox("输入N")x=inputbox("输入X")msgbox mcase(d,x)function mcase(d,x)for n=1 to d if n=1 then j=x+1 else j=j+x^n end ifnextmcase=jend function