设有变量pi=3.1415926,执行命令?ROUND(pi,3)的显示结果为______。A.3.141B.3.142C.3.14D.3
设有变量pi=3.1415926,执行命令?ROUND(pi,3)的显示结果为______。
A.3.141
B.3.142
C.3.14
D.3
相关考题:
(13)为把圆周率的近似值 3.14159 存放在变量 pi 中,应该把变量 pi 定义为( )。A)Dim pi As IntegerB)Dim pi(7) As IntegerC)Dim pi As SingleD)Dim pi As Long
为把圆周率的近似值3.14159存放在变量pi中,应该把变量pi定义为A.Dim pi As IntegerB.Dim pi(7)As IntegerC.Dim pi As SingleD.Dim pi As Long
程序运行结果为______。#define R 3.0#define PI 3.1415926#define L 2*PI*R#define S PI*R*Rmain(){ printf("L=%f S=%f\n",L,S);}A.L=18.849556 S=28.274333B.18.849556=18.849556 28.274333=28.274333C.L=18.849556 28.274333=28.274333D.18.849556=18.849556 S=28.274333
请把下面程序补充完整,正确答案是( )。 main( ) { float radius,length,area,volume; printf("Input a radius:"); Scanf("%f",radius); length=2.0*PI*radius; /*引用无参宏求周长*/area=PI*radius*redius; /*引用无参宏求而积*/ volume=PI*radius*radius*radius*3/4; /*引用无参宏求体积*/ printf("length=%.2f,area=%.2f,volume=%.2f\n",length,area,volume); }A.PI=3.1415926B.Const PI=3.14159C.#define PI3.1415926D.Float PI=3.14159
当执行下列宏定义命令后,S的值为 ( ) # defineR3.0 # define PI 3.1415926 # define L2 * PI * R # define S PI * R * RA.3.1415926B.18.849556C.3D.28.2743334
离散随机变量X取xi的概率为pi(i=1,2,…,n),则pi应满足的条件为( )。A. pi≥0 B. p1+p2 +… +pn =1C. pi≤0 D.pi≥0且p1+p2 +… +pn =1
设实型变量pi已赋值为3.14159,下面不能输出3.14的语句是()A、write(pi:0:2)B、writeln(pi:1:2)C、write(pi:2:2)D、writeln(pi:2)
单选题为把圆周率的近似值3.14159存放在变量pi中,应该把pi定义为( )。ADim pi As IntegerBDim pi(7)As IntegerCDim pi As SingleDDim pi As Long
单选题已知pi=3.1415926,执行?ROUND(pi,3)的结果为()。A3.141B3.142C3.140D3.000