早教吧作业答案频道 -->其他-->
vf问题,我哪里出了错dowhile.t.store1toc,xinput"任意输入正整数"toaifint(a)=a.and.a>0nextelsewait"请输入正整数"loopendifenddodowhile.t.input"任意输入正整数"tobifint(b)=b.and.b>0nextelsewait"请输
题目详情
vf问题,我哪里出了错
do while .t.
store 1 to c,x
input"任意输入正整数" to a
if int(a)=a.and.a>0
next
else
wait "请输入正整数"
loop
endif
enddo
do while .t.
input"任意输入正整数" to b
if int(b)=b.and.b>0
next
else
wait "请输入正整数"
loop
endif
enddo
if a=b
for q=1 to a
x=x*q
endfor
endif
if a>b
c=b
b=a
a=c
endi
for i=1 to a
x=x*i
endf
s=x
for j=a+1 to b
x=x*j
s=s+x
endf
retu
do while .t.
store 1 to c,x
input"任意输入正整数" to a
if int(a)=a.and.a>0
next
else
wait "请输入正整数"
loop
endif
enddo
do while .t.
input"任意输入正整数" to b
if int(b)=b.and.b>0
next
else
wait "请输入正整数"
loop
endif
enddo
if a=b
for q=1 to a
x=x*q
endfor
endif
if a>b
c=b
b=a
a=c
endi
for i=1 to a
x=x*i
endf
s=x
for j=a+1 to b
x=x*j
s=s+x
endf
retu
▼优质解答
答案和解析
粗略地(大写字母所示):
STORE 1 TO c,x
do while .t.
input"任意输入正整数" to a
if int(a)=a.and.a>0
EXIT
else
wait "请输入正整数"
loop
endif
enddo
do while .t.
input"任意输入正整数" to b
if int(b)=b.and.b>0
EXIT
else
wait "请输入正整数"
loop
endif
enddo
if a=b
for q=1 to a
x=x*q
endfor
endif
if a>b
c=b
b=a
a=c
endif
for i=1 to a
x=x*i
endfor
s=x
for j=a+1 to b
x=x*j
s=s+x
endfor
retu
STORE 1 TO c,x
do while .t.
input"任意输入正整数" to a
if int(a)=a.and.a>0
EXIT
else
wait "请输入正整数"
loop
endif
enddo
do while .t.
input"任意输入正整数" to b
if int(b)=b.and.b>0
EXIT
else
wait "请输入正整数"
loop
endif
enddo
if a=b
for q=1 to a
x=x*q
endfor
endif
if a>b
c=b
b=a
a=c
endif
for i=1 to a
x=x*i
endfor
s=x
for j=a+1 to b
x=x*j
s=s+x
endfor
retu
看了 vf问题,我哪里出了错dow...的网友还看了以下:
有个多项式的前后两项被墨水污染了,负的不要,有8个正的加20分,有个多项式的前后两项被墨水污染了, 2020-05-21 …
84\14=6,那么,14能被84整除么关于整除的概念全忘了,请帮下那84能被14整除,还是84能 2020-06-02 …
两个整数X、Y都能被非零整数A整除,请问这两个整数它们的和、差、积、商也能被A整除吗?请说明理由, 2020-06-07 …
请教思考题(估算整数部分)设A=1+1÷2+1÷3+1÷4+1÷5+……+1÷15+1÷16,求A 2020-06-08 …
中译英一句话,由于订货量大的原因,我们调整了订单的数量.产品A的数量没变,但产品B的数量我们根据货柜 2020-11-06 …
FLASHAS2.0实现输出的计算结果保留两位小数的代码做了一个简单的两个数的除法计算的动画,点按钮 2020-11-07 …
比如10点10分、这里的10点指的是什么?我是这样想的:10点就是10点整这个时刻、10分是过了10 2020-11-12 …
为了展示我国改革开放的巨大成就,小明制作了一张手抄报,但有些内容不完整,请你将它补充完整.伟大祖国成 2020-11-23 …
小女在此谢过了请问一下存邮政储蓄的通知存款和整存整取有什么区别,哪个利息高一些.再,我明白什么是能知 2020-11-27 …
怎么整理课文啊,看下描述开学几天老师就叫我们整理课文,但不知道整理哪些,太多了不知道怎么整理.长话短 2021-01-12 …