谁帮我做几道C语言的题目?我没分了愿意的帮下谢谢了一求100以内任意整数的阶乘

来源:百度知道 编辑:UC知道 时间:2024/05/17 18:31:52

http://zhidao.baidu.com/question/27967540.html?si=1

http://zhidao.baidu.com/q?word=%BD%D7%B3%CB+%B8%DF%BE%AB%B6%C8&ct=17&pn=0&tn=ikaslist&rn=10

main()
{ int num,sum=1;
int choice;
do
{printf("Please enter the num whitch you need :\n");
scanf("%d",&num);
while(num!=0)
{sum*=num;
num--;
}
printf("the last is %d\n",sum);
sum=1;
printf("Press 0 to continue\n");
scanf("%d",&choice);
getch();
}while(choice==0);
}

这个也太简单了!
#include<stdio.h>
main()
{
int n,i;
long j=1;
printf("please number:");
scanf("