有下列伪码程序: START INPUT (M,N) IF M>=10 THEN X=10 ELSE X=l ENDIF IF N>=20 THEN Y=20 ELSE Y=2 ENDIF PRINT(X,Y) STOP 流图
时间: 2023-10-18 08:04:51 浏览: 190
A*算法伪代码(包含输入输出)
5星 · 资源好评率100%
```flow
st=>start: START
input=>inputoutput: INPUT (M,N)
cond1=>condition: M>=10?
op1=>operation: X=10
op2=>operation: X=1
cond2=>condition: N>=20?
op3=>operation: Y=20
op4=>operation: Y=2
print=>inputoutput: PRINT(X,Y)
stop=>end: STOP
st->input->cond1
cond1(yes)->op1->print
cond1(no)->op2->print
print->stop
cond1(yes)->cond2
cond2(yes)->op3->print
cond2(no)->op4->print
```
阅读全文