上课的程序是不是有问题
颠覆神话 中级粉丝 2015-07-22 18:54:33
2989 2 0

# include <stdio.h>

# include <stdlib.h>

main()

{

int i,n,s;

while(1)

{

system("cls");

s = 1;

printf("请输入一个整数:");

scanf("%d",&n);

if(n==0) break;

for(i = 1; i<=1; i++)

s = s * i;

printf("n!=%d\n", s);

system("pause");

}

}


问题来自: break和continue

共 2 个回答

您还没有登录,所以不能回复该问题
我要回复

  • 0

    点赞

  • 扫一扫分享朋友圈

    二维码

  • 分享

相关问题