问题 填空题

程序的伪代码如下:当x=5时运行结果为______.

Readx

Ifx≤10Then

P←4x

Else

P←(x-3)×7

EndIf

PrintP.

答案

根据伪代码可得y=

4x,x≤10
(x-3)×7,x>10

∵x=5

∴4x=20

故答案为:20

选择题
单项选择题