注意:此页面搜索的是所有试题
题目内容
(金融学(第二学期))
写出下列程序的运行结果。
clear
a=1
do while a<5
b=1
do while b<5
if a*b<10
b=b+1
else
exit
endif
enddo
a=a+1
enddo
?"a=",str(a,3),"b=",str(b,3)
a=5, b=3
clear
a=1
do while a<5
b=1
do while b<5
if a*b<10
b=b+1
else
exit
endif
enddo
a=a+1
enddo
?"a=",str(a,3),"b=",str(b,3)
a=5, b=3
参考答案