问答题
简答题
指出下列语句中的错误:
(1)if x≥y then print x;
(2)if 10<x<20 then x=x+20
【参考答案】
(1)表达式书写错误,应写成:x>=y;
(2)表达式书写错误,应是:10<x and x<20
点击查看答案
