以下程序的运行结果为:a=15if a>15: print(5,end="")if a>10: print(20,end="")if a>5: print(35,end="")
举一反三
- 写出运行结果:a=15if a>15:print(5,end="")if a>10:print(20,end="")if a>5:print(35,end="")
- a=15if a>15:print(5,end="") elif a>10:print(20,end="")elif a>5:print(35,end="")
- a=15 if a>15: print(5,end="") if a>10: print(20,end="") if a>5: print(35,end="")
- a=15if a>13: print(5,end="")if a>14: print(20,end="")if a>15: print(35,end="")
- 有如下程序,运行后的输出结果是 ______。 a = 5 If a <= 3 Then Print 3; End If If a <= 4 Then Print 4; End If If a <= 5 Then Print 5; End If If a <= 6; Print 6; End If A: 3456 B: 456 C: 56 D: 6