早教吧作业答案频道 -->其他-->
1.添加,减号.键盘输入N,在123456789之间添上“+”,“-”后使等式成立.例如:N=1,输出1+2+3+4-5+6+7-8-9=1.程序:inputnfori=1to9a(i)=:b(i)=0:nextic$(0)="+"dowhilefor
题目详情
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
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
▼优质解答
答案和解析
我段,你打我电话,我告诉你
看了1.添加,减号.键盘输入N,在...的网友还看了以下:
1/2{1/2[1/2(1/2y-3)-3]-3}=17x-1/0.024=1-0.2x/0.08 2020-04-27 …
问个节点电压方程如图我给出的方程是(1/8+1/2.5+1/4)un1-1/2.5un2-1/4u 2020-05-14 …
一元二次方程根的判别式练习的填空题我有答案,1.方程x2+2x-1+m=0有两个相等实数根,则m= 2020-05-16 …
6÷3/8–3/8÷64/7×5/9+3/7×5/95/2-(3/2+4/5)7/8+(1/8+1 2020-07-18 …
请用代入法解:{y+1=2(x+2)2x-3y=1{y=1-x5x+2y=8请利用整体代入法解:请 2020-08-01 …
初一一道数学找规律的题急用1.将1,-1/2,1/3,-1/4,1/5,-1/6,.按一定的规律排列 2020-11-03 …
计算,并写出过程.例:3分之2-8分之1[-3分之1]+[-8分之3]3分之2-8分之1[-3分之1 2020-11-07 …
求助1/2*4+1/4*6+1/6*8+…+1/2010*2012=1/2(1/2-1/4+1/4- 2020-11-07 …
直接写出得数6.3÷9=4.2÷2.1=8-2.6=4×1.5=0.32+0.8=1.7+0.25= 2020-11-19 …
(1/8+1/9+1/10+1/11)*(1/9+1/10+1/11+1/12)-(1/8+1/9+ 2020-12-01 …