
Private Sub Form-Click()
Dim S As Integer
Dim N As Integer
N=0
S=0 ‘S变量存放的是总和
Do While (条件)
N=N+1
S=S+N
Loop
Text1. Text=Str()
End Sub
1st=[] #定义一个空列表,用于存放水仙花数
: #用for循环遍历所有的三位数
a= #个位
b= (i//10) %10 #十位
c= #百位
if
1st. append (i) #在列表的末尾追加一个元素
print(lst) #输出列表
Private Sub Command1_Click()
Dim x As Integer
x = Val(Text1.Text)
Select Case x
Case Is >= 450
Text2.Text = "优秀"
Case Is >= 400
Text2.Text = "良好"
Case Is > 350
Text2.Text = "中等"
Case Is >= 300
Text2.Text = "及格"
Case Else
Text2.Text = "不及格"
End Select
End Sub
语法错误:
该程序运行后,若在文本框中输入350,则输出为:
For to 9
For b=0 to 9
For c=0 to 9
For d=0 to 9
X=
If then
print x
End if
Next d
Next c
Next b
Next a
Dim x As Integer
x=0
Do While x<50
x=(x+2)*(x+3)
Loop
Private Sub Command1_Click()
Dim age As Integer, tree As Integer
age = 15
tree = 1
Do While tree
age =
Tree = tree + (age - 14)
Text1.Text = Str(age)
End Sub
a=10, i=10
If i>10 then
a=a+i
Else
a=a-i
End if
图1
Private Sub Command1_Click( )
w= val (Text1. text)
if then
f=38
Else
f=
End If
Text2. text=f
End Sub
a=0
for i in range(1,4):
a=a+i
print(a)
For i in range(①):
Print("抗击疫情,广州加油!")
m=int(input("请输入一个整数:"))
if ⑴:
print("这个数字是奇数")
⑵:
print("这个数字是偶数")
⑴A.m/2=0 B.m//2==0 C.m%2=0 D.m%2==1
⑵A.if B.else C.elif D.break
Dim m, n, k As Integer
m = 6
n = 1
For k = 1 To m Step 2
n = n * k
Next k
Print "n ="; n
程序运行后,n的值是:
a=15
b=20
a=b
print(a)
sum=0
for i in range(1,11,1) :
sum=sum+i
print( sum)
提示:让海龟前进10单位,turtle.forward(10)
让海龟左转45度,turtle.left(45)
让海龟右转90度,turtle.right(90)

a1=int(input ("请输入自然数:"))
a2=int(input ("请输入自然数:"))
p=int(a1*a2)
print(p)
假如输入5和6,结果是( )