if...else if...ele=sese语句

29 阅读1分钟

if...else if...ele=sese语句适用于多个条件进行判断

如图

image.png

然后进行编译

image.png

不同的值得出的答案也不同

image.png

image.png