vf计算最大值的问题clearinput "请输入第一个数字:" to a input "请输入第二个数字:" to b

问题描述:

vf计算最大值的问题
clear
input "请输入第一个数字:" to a
input "请输入第二个数字:" to b
input "请输入第三个数字:" to c
if a>=b
if a>=c
?"最大值:",a
else
?"最大值:",c
endif
else
if b>=c
?"最大值:",b
else
?"最大值:",c
endif
endif
谁能帮我讲下这段代码
越详细越好,为什么这么写,左右是什么
1个回答 分类:综合 2014-10-24

问题解答:

我来补答
*程序这样看就好多了..
if a>=b &&在a>=b的时候,这是总前提

if a>=c &&如果a>=c
?"最大值:",a &&即a最大 ,因为大于a和c
else &&意是条件不满足a>=c,那么就是a
 
 
展开全文阅读
剩余:2000
上一页:高数一指数函数
下一页:必修五第四单元