试题 试卷
题型:综合题 题类: 难易度:普通
新疆伊犁哈萨克自治州霍城县2023-2024学年高一上学期信息技术10月月考试卷
for n in range( 100,1000):
i=n//100
j=n//10%10
k=n%10
if n= :
print(n)
Dim a(1 To 6) As Integer
Randomize
a=n Mod k
n=n\k,k=k+1,s=s+a
a(1) = Int(11 * Rnd) + 2
For i = 2 To 6
a(i) = Int(11 * Rnd) + 2
If i Mod 2 = 1 And Not prime(a(i)) Then i = i - 1
ElseIf Not prime(a(i)) Then a(i) = a(i) + a(i - 1)
End If
Next i
'自定义函数 prime()用于判断参数是否为质数,prime(n) = True 则说明 n 为质数,否则为合数,定义函数代码略执行该程序后,a(1)~a(6)的值不.可.能.为( )
n=int(input())
{#blank#}1{#/blank#}
for i in range(n+1):
flag=False
if i%7==0:
flag=True
m=i
while {#blank#}2{#/blank#}:
if m%10==7:
m//=10
if {#blank#}3{#/blank#}:
sum=sum+i*i
print(sum)
试题篮