1.添加,减号.键盘输入N,在123456789之间添上“+”,“-”后使等式成立.例如:N=1,输出1+2+3+4-5

1.添加,减号.键盘输入N,在123456789之间添上“+”,“-”后使等式成立.例如:N=1,输出1+2+3+4-5+6+7-8-9=1.程序:
input n
for i = 1 to 9
a(i) = _________:b(i)=0:next i
c$(0)="+"
_________________
do while _______
_________________
for i = 2 to 9
if b(i) = o then s = s + a(i) else__________
next i
if_____then print a(i);
for j = 2 to 9
print _______;a(j);
next j
print"=";n
end if
k = 9
do while_________
______________
__________
loop
b(k) = _____________
loop
2.下面这段程序假设输入的都是两位整数
dim a(10),temp(10),order(10)
for i = 1 to 10
input a(i)
next
for i = 1 to 10
for j=1 to 10
temp (i,j)=0
next j,i
for i = 1 to 10
order(i) = 0
next
k = 1
n = 1
while n
princeye320 1年前 已收到1个回答 举报

dejo100 幼苗

共回答了21个问题采纳率:90.5% 举报

我段,你打我电话,我告诉你

1年前

4
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.030 s. - webmaster@yulucn.com