下列代码确切的输出是( )? double area = 3.5; System.out.print("area"); System.out.print(area);
A: 3.53.5
B: 3.5 3.5
C: area3.5
D: area 3.5
A: 3.53.5
B: 3.5 3.5
C: area3.5
D: area 3.5
举一反三
- The low polar orbiting satellite system provides the coverage of ( ) A: Area A4 B: Area Aland A2 C: Area A3 D: Area Al. A2.A3and A4
- 代码段: area = 12.56636 print(“圆面积是:{:.2f}”.format(area))的运行结果是() A: 12.56636 B: 12.566 C: 12.56 D: 12
- 下面代码的执行结果是。 def area(r, pi = 3.14159): return pi * r * r print(area(3.14, 4))
- 下面代码的执行结果是 def area(r, pi = 3.14159): return pi * r * r print(area(3.14, 4)) A: 无输出 B: 出错 C: 50.24 D: 39.4384
- 输入一个表示半径的浮点数,计算圆的面积的程序正确的有:[br][/br] (圆周率取使用math库中的pi值,结果保留2位小数) A: import math <br> radius = float(input()) area = math.pi * radius ** 2 print(round(area, 2)) B: import math <br> radius = float(input()) area = pi * radius ** 2 print(round(area, 2)) C: from math import pi <br> radius = float(input()) area = math.pi * radius ** 2 print(round(area, 2)) D: from math import pi <br> radius = float(input()) area = pi * radius ** 2 print(round(area, 2))