VB求出50以内所有奇数的和
答案:3 悬赏:20 手机版
解决时间 2021-11-25 08:48
- 提问者网友:城市野鹿
- 2021-11-24 09:02
VB求出50以内所有奇数的和
最佳答案
- 五星知识达人网友:夜风逐马
- 2021-11-24 10:31
dim iA as integer
for iA =1 to 49 step 2
sum=sum+ia
next
for iA =1 to 49 step 2
sum=sum+ia
next
全部回答
- 1楼网友:你哪知我潦倒为你
- 2021-11-24 12:16
dim i as integer,result as string
i=CINT(textbox1)
if i mod 2 <> 0 then
i=i+2
result=i+2
if i>47 then
textbox2.text=result
i=CINT(textbox1)
if i mod 2 <> 0 then
i=i+2
result=i+2
if i>47 then
textbox2.text=result
- 2楼网友:你可爱的野爹
- 2021-11-24 10:39
sum = 625
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯