试题 试卷
题型:单选题 题类: 难易度:普通
浙江省丽水市2022-2023学年高二下学期信息技术6月教学质量检测(期末)试卷
Dim i As Integer, s As Integer
Dim a (1 To 10)As Integer
For i =1 To 10
a(i)=i^2
If a(i)Mod 3=0 And a(i)Mod 5 =0 Then s= 50000+ a(i)
If a(i)Mod 3=0 Or a(i) Mod 5 =0 Then s =s+ a(i)
Next i
Text1. Text Str(s)
执行该程序段后,下列说法正确的是( )
s=input("请输入一串整数,以逗号间隔开来:")
t=""
sum=0
for i in ① :
if i!=", ":
②
else:
sum=sum+int(t)
print("该数据序列的和为:",sum)
试题篮