VF的编程

来源:百度知道 编辑:UC知道 时间:2024/07/08 15:25:11
1,任意输入一个整数,判断其奇偶性。2,从键盘输入10个数,然后找出其中的最大值和最小值。麻烦大家帮我写写,谢啦

第一题
clear
set talk off
inpu "请输入一个数:" to i
if i%2=0
?"为偶数"
else
?"为奇数"
endif
set talk on
retu
第二题
clear
set talk off
input "输入一个数:" to m
x=m
y=m
for i=1 to 9
input "输入一个数:" to a
if x>a
x=x
else
x=a
endif
if y<a
y=y
else
y=a
endif
endfor
?"最大值:",x,"最小值:",y
set talk on
retu