VF编程求助!!!两个个小程序麻烦高手们帮帮忙!
VF编程求助!!!两个个小程序麻烦高手们帮帮忙!
日期:2022-04-11 15:05:33 人气:1
1:
store 0 to s1,s2
input 'n? ' to n
for i=1 to n
input '数值= ' to xxx
if mod(xxx,2)=0 then
s2=s2+xxx
else
s1=s1+xxx
endif
endf
?'奇数之和:
store 0 to s1,s2
input 'n? ' to n
for i=1 to n
input '数值= ' to xxx
if mod(xxx,2)=0 then
s2=s2+xxx
else
s1=s1+xxx
endif
endf
?'奇数之和: