早教吧作业答案频道 -->其他-->
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...的网友还看了以下:
英语翻译英语:我翻译的英语译文的英语质量是不是太差?请改正我写的错误的英文.Whendriving 2020-04-27 …
英语译文的英语质量是不是太差?请改正我写的错误的英文.Whenamotorizedvehicler 2020-04-27 …
英语译文的英语质量是不是太差?请改正我写的错误的英文.Amotorizedvehicleisnot 2020-04-27 …
the only thing that you should do is to try your 2020-05-16 …
麻烦检查两句英语是否使用正确?我总是依赖你.Iamalwayslookingtoyou.你要不依靠 2020-05-17 …
用修改符号修改下面一段话下面一段话中有两个错别字,两个病句,两个用错的标点,请改正我非常喜欢酷爱书 2020-06-14 …
use后面的动词形式请问use后面可以跟什么样的动词形式?usetodo?usedoing?如果我 2020-07-20 …
更改病句!下面一段话又六处不恰当的地方,请改正!我非常酷爱喜欢看书.哪天,我看了一本“体育卫生知识” 2020-11-02 …
“早春的一场大雪,洁净着茫茫田野,也洁净着赏雪者的心灵”这句话是对是错,如果是错的,请改正我有个疑问 2020-12-07 …
近世代数问题:我感觉"有限半群存在等幂元"不对,请斧正我有{1,2}定义运算1*1=21*2=22* 2020-12-26 …