摘要:40.A.if B.though C.because D.while
网址:http://m.1010jiajiao.com/timu_id_3719484[举报]
以下是用Scilab编写的程序,输出a,b的含义是________________.
a=input(“please give the first number”)
b=input(“please give the second number”)
while a<>b
if a>=b
a=a-b;
else
b=b-a;
end
end
print(%io(2),a,b)
查看习题详情和答案>>以下是用
Scilab编写的程序,输出a,b的含义是________________.a=input(
“please give the first number”)b=input(
“please give the second number”)while
a<>bif a>=b
a=a-b;
else
b=b-a;
end
end
print(
%io(2),a,b) 查看习题详情和答案>>阅读基本语句,分析该算法的功能:
输入x
if x≥2then y:=2*x
else y:=3+x∧2
输出y+1
若两次分别输入0和5,则运算结果依次为
[ ]
A.0,10
B.0,28
C.4,11
D.-1,27
下列格式正确的是 ( )
①IF条件THEN ②IF条件THEN
语句1 语句
ELSE END IF
语句2
END IF
③WHILE 条件 ④DO
循环体 循环体
WEND LOOP UNTIL 条件
A.①②③④ B.①②④
C.①③④ D.②③④
查看习题详情和答案>>
阅读基本语句,分析该算法的功能:
输入
xif
x≥2then y:=2*xelse
y:=3+x∧2输出
y+1若两次分别输入
0和5,则运算结果依次为[
]|
A .0,10 |
B .0,28 |
C .4,11 |
D .-1,27 |