vf命令计算出1-50以内能被3和5整除的数之和
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/18 10:26:28
vf命令计算出1-50以内能被3和5整除的数之和
求大神指导这个程序哪里出错了?
clear
set talk off
x=0
y=1
do while not eof()
x=x+1
do case
case mod(x,5)=0 or mod(x,3)=0
y=y+x
case x50
exit
endcase
enddo
?y
求大神指导这个程序哪里出错了?
clear
set talk off
x=0
y=1
do while not eof()
x=x+1
do case
case mod(x,5)=0 or mod(x,3)=0
y=y+x
case x50
exit
endcase
enddo
?y
clear
set talk off
x=0
y=0 &&原来y=1
do while not eof()
x=x+1
do case
case mod(x,5)=0 and mod(x,3)=0 &&原来case mod(x,5)=0 or mod(x,3)=0
y=y+x
case x50
exit
endcase
enddo
set talk off
x=0
y=0 &&原来y=1
do while not eof()
x=x+1
do case
case mod(x,5)=0 and mod(x,3)=0 &&原来case mod(x,5)=0 or mod(x,3)=0
y=y+x
case x50
exit
endcase
enddo
vf命令计算出1-50以内能被3和5整除的数之和
计算1-50以内(包含50)能被3和5整除的数之和.用vf语言
计算1~100以内能被3或5整除的数之和.以及显示其中能被3和5整除的数
vf程序填空求100以内能被3整除的但不能被7整除的数字之和.结果正确补加5分,***加急!
vf 100以内能被3整除的数程序设计 要求用do while语句
用VF怎样编程:100以内能够被X整除的数之和
VF编程题:求100以内所有能被3整除的整数的和,急,
vf计算1~100所有能被3或4整除的数的和
100以内能够被X整除的数之和.(X任意输入,如输入的8,则计算100以内能被8整除的数之和.)VF 程序
VF编程计算所有四位数中能同时被9和11整除的数之和.怎么编?
求1000以内不能被3整除的数字之和,用vf程序怎么写
100以内能同时被3和5整除的所有偶数之和是多少