main()
{
	float a, b;
	int c, d;
  a:printf("零+回车求和\n请输入数字:\n");
	      scanf("%f", &a);
	b = a + b;
	      if (a == 0)
		          goto b;
	else
		d += 1;
	          goto a;
    b:printf("平均数为:\n%f", b / d);
	      printf("\n输入1继续");
	a = b = d = 0;
	      scanf("%d", &c);
	      if (c == 1)
		          goto a;
	      
	else
		          printf("点击关闭\n\n\n");
}