d=
if d>0 then
x1= (-b + Sqr(d)) / (2 * a)
x2=
text4.text=str(x1)
text5.text=str(x2)
label6.caption=“有两个不同的实数根”
else
if then
x1=(-b)/(2*a)
x2=x1
text4.text=str(x1)
text5.text=str(x2)
label6.caption=“有两个相同的实数根”
else
text4.text=
text5.text=""
label6.caption=
end if
end if
b=1
Do while (b<40)
b=b*(b+1)
Loop
Print b
x=5
y=-6
If Not x>0 Then x=y-3 Else y=x+3
Print x-y; y-x

t=float (input("请输入停车时长:"))
if t<=1:
print("停车时长"+str(t)+",免费停车")
elif t<=3:
print("停车时长"+str(t)+",收费5元")
print("停车时长"+str(t)+",收费10元")
else:
print("停车时长"+str(t)+",收费15元")
代码如下:
import turtle
turtle. bgcolor("black")
colors=["red", "green", "blue", "yellow"]
for x ① range(100):
turtle. pencolor(colors[x%4])
turtle. circle(x)
turtle. left(90)
请分析任务,完成下列题目。
a,b=[0]*10,[False]*10
i=0
while i<=9:
if not b[r]:
a[i]=r
i=i+1
print(a)
则划线处的代码依次是( )
① r=random.randint(0,10)
② b[r]=True
③import random
④ b[i]=True
⑤from random import randint
⑥ r=random.randint(0,9)
n=0
for i in range(1,4):
n+=i
1)def factoria1(n): #求n!
2) s=1
3) for i in range(2,n+1)::
4) s=s*i
5) return s
6)print(factorial(4))
i=1
while i<=49:
print(“♥”)
i=i+1
For i=1 To 6
For j=1 To 4
Print”*”
Next j
Next i
Dim x As Integer
x=0
Do While x<50
x=(x+2)*(x+3)
Loop
a=int(input("请输入1-20的整数"))
b=15
if a==b:
print("恭喜你,猜对了")
else:
if a>b:
print("很遗憾,猜大了")
else:
print("很遗憾,猜小了")
a=4
b=6
avg=(a+b)/3
print(avg)
for i in range(0,2):
print(i)