3. 画出下列伪码程序的程序流程图和盒图 START IF p THEN WHILE q DO f END DO ELSE BLOCK g n END BLOCK END IF STOP
时间: 2024-02-10 21:37:46 浏览: 181
程序流程图:
```
START
|
IF p
|
WHILE q
|
f
|
END DO
|
ELSE
|
BLOCK
|
g
|
n
|
END BLOCK
|
END IF
|
STOP
```
盒图:
```
+---------+
| START |
+---------+
|
V
+---------+
| IF |
| p |
+---------+
| |
V |
+---------+
| WHILE |
| q |
+---------+
| |
V |
+---------+
| f |
+---------+
| |
V |
+---------+
| END |
| DO |
+---------+
| |
V |
+---------+
| ELSE |
+---------+
| |
V |
+---------+
| BLOCK |
| g |
| n |
+---------+
| |
V |
+---------+
| END |
| BLOCK |
+---------+
| |
V |
+---------+
| END |
| IF |
+---------+
| |
V |
+---------+
| STOP |
+---------+
```
阅读全文