字典翻译 问答 其它 计算2!+4!+6!+8!+10!的值,结果存在变量s中,输出s.(利用for循环结构)
问题标题:
计算2!+4!+6!+8!+10!的值,结果存在变量s中,输出s.(利用for循环结构)
问题描述:

计算2!+4!+6!+8!+10!的值,结果存在变量s中,输出s.(利用for循环结构)

董杰回答:
  longs1,s   inta,n   a=integer(sle_3.text)   s1=1   forn=2toastep2   s1=s1*n   s=s1+s   next   st_3.text=string(s)   输入2=2,输入4得1*2+2*4=10是吗,如果数值太大不处理
点击显示
其它推荐
热门其它推荐
  • 其它