s=0
For i=1 To 3
s=s+i
Next i
s=0
For i=1 To 3
s=s+i
Next i
Dim Y As Integer
Y=0
Do While Y<30
Y=(Y+2)*(Y+3)
Loop
① ② ③ ④
x=0
For i = 1 to 5
For j = i to 5
x=x+1
Next j
Next i
Print x
If a<=70 Then i=1
If a>70 Then i=2
Print i
以上程序段的执行结果为2。
x=6
If x <= 5 Then
y = 2 * x + 1
Else
y = x / 2
End If
a=4
b=2
print(a%b)
Num=123
temp1=Num%10
temp2=Num%100
print(temp1,temp2)
Num1=3
Num2=4.8
print(Num1,Num2)
a=int(input("请输入分数: ")) if a>=85: print("优秀") else: if a>=60 and a<85: print("良好") print("继续努力") else: print("待优") print("你需要加把劲了") |