C語言for語句編程求N的階乘?
#include
main(){
int sum=1;
int n;
printf("Please input the number N:");
scanf("%d",&n);
for(int i=1;i
{
sum=sum*n;
}
printf("SUM=%d",sum);
}
C語言for語句編程求N的階乘?
#include
main(){
int sum=1;
int n;
printf("Please input the number N:");
scanf("%d",&n);
for(int i=1;i
{
sum=sum*n;
}
printf("SUM=%d",sum);
}