#include
int main(void)
{
int a=6,max,production;
int number[a];
for(max=1,a=0;max<=6;max++)
{
number[a]=max;
a++;
}
while(a<max)
{
production=1;
production=production*number[a];
a++;
}
printf("%d\n",production);
return 0;
}
c小白求教实现1*2*3*4*5*6
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
threenewbee 2016-05-23 09:34关注这么啰嗦干嘛?直接
int x = 1;
for (int i = 1; i < 7; i++)
x *= i;
printf("%d", &x);解决 无用评论 打赏 举报