阅读下面程序:
voidmain(void)
{
ints=0,n=0,x;
label:scanf("%d",&x);
if(x>0){
s+=x;
n++;
printf("s=%d,n=%d,even=%f\n",s,n,1.0,*s/n);
}
if(x!=0)
gotolabel;
else
printf("goodbye!");
}
当依次输入12-3-65130↙时,写出程序的运行结果。
延伸阅读
你可能感兴趣的试题
A,66,102,a
A.x&y&z ;
B.x¦y¦z ;
C.x^x+y^y ;
D.z>>y ;
E.x&0xff00
A.struct person{long bh; char *name; int age;}
psl={9100,"wang",20},* pst; pst=psl; printf("%d",*pst→agE.;
B.struct my_data
{int num; struct my_data *next;};
C.struct test
{char *course; char *class}
D.struct worker
{char name[9]; float gz;}Li={"Li Ping",532.67};
E.struct int_num {int i _num;struct int_num *next; }ione, *pi; pi=&ione;
A.s="abcd";
B.gets(s);
C.scanf("%s",s);
D.strcpy(s,"abcd");
E.strcpy("abcd",s);
A.!a&&b| |a&&(c+1)
B.a-b+3
C.(a>B.==c
D.(a=0)&&(b=10)
E.b>a&&a>c
A.RAM
B.光盘
C.硬盘
D.软盘
E.磁带
热门相关试卷
最新相关试卷