44问答网
所有问题
1、下列程序的运行结果是: #include <stdio.h> main() { float a; a=3.141592612; printf(“a=%f\n”,a);
1、下列程序的运行结果是:
#include <stdio.h>
main()
{ float a;
a=3.141592612;
printf(“a=%f\n”,a);
举报该问题
推荐答案 2021-06-02
执行下列程序后的输出结果是: (
)
#include “
stdio.h
”
main()
{
float a=57.666;
printf(“*%2.2f*\n”, a);
}
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://44.wendadaohang.com/zd/YK6ZRVZVK.html
其他回答
第1个回答 2010-09-11
a=3.141592 应该不会进位,只会舍弃,%f是六位有效小数
第2个回答 2010-09-11
a=3.141593,用编译器运行出来的结果。
第3个回答 2010-09-11
a=3.141593,后面的进位了。
相似回答
教我做个C++
答:
include
<
stdio.h
> include<math.h> define pi
3.14159
void
main(){
float r,h
;float
a,b,c,d,e;printf("请输入半径:");scanf("%f",&r);printf("请输入高:");scanf("%f",&h)
;a=
2.0*pi*r;b=pi*r*r;c=4.0*pi*r*r;d=int(4.0*pi*r*r*r)/3;float(d);e=a*h;p...
c语言,求
程序
答:
include
<
stdio.h
>int
main(){
int h=10,r=10;//当然你也可以用scanf读,我这里为了方便就直接初始化了 int n=(int)20000/(2*
3.14159
*r*h) + 1 ;//向上取整 printf("要喝%d捅水\n",n); return 0;}
c语言简单改错
答:
main { int x=2;y=3;int a = x*y;print ('a=%d",a);printf("\n");} 2.
include
"
stdio.h
"
main();float
r;area;r=5.0;area=
3.14159
*r*r;printf("area=%d\n",area)3.include "stdio.h"
main(){
char x,y,z;x='a';y='\t';z='b';printf("第1行为:%c%c%c\...
C语言请高手帮忙解释下
,下面
语句的意思。
答:
include
<
stdio.h
> //计算长方体体积
main()
/*main function*/
{
float
a,b,c,v; /*a,b,c are sides, v is volume of cube:abc为三边,v为体积*/ a=2.0;b=3.0;c=4.0; //三边分别为2.0,3.0,4.0 v=a*b*c; //长方体体积公式:体积=长*宽*高 print...
大家正在搜
下列程序段的运行结果是
以下程序运行的结果是
include iostream
下面程序运行结果是
程序段的运行结果是
c语言include stdio
程序的运行结果
写出程序的运行结果
有以下程序include
相关问题
下面程序的运行结果是 #include <stdio.h> ...
下面程序运行后的输出结果是( ) #include <std...
以下程序的运行结果是#include<stdio.h> vo...
下列程序的运行结果 #include<stdio.h...
下列程序的运行结果是( ). #include <stdio...
请问,下面程序的运行结果是( ).#include <std...
以下程序的运行结果是()#include<stdio.h>m...
#include”stdio.h” main() { flo...