正在加载图片...
例从键盘输入一组数据,以0结束输入,求数据和C Ch5 11.c ch5 11.c*/ #include <stdio.h> main( int num ber sum=0 ead loop: scanf("%d", &number) if(! number) goto print sum sumt=number goto read loop print sum: printf("The total sum is %d\n", sum)例 从键盘输入一组数据,以0结束输入,求数据和 /*ch5_11.c*/ #include <stdio.h> main() { int number,sum=0; read_loop: scanf("%d",&number); if(!number) goto print_sum; sum+=number; goto read_loop; print_sum: printf("The total sum is %d\n",sum); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有