int n;
scanf("%d", &n); int fact = 1; int i = 1; while ( i <= n ) { fact *=i; i++; } 上述可用 for 循环代替 for (int i = 1; i<= n; i++) { fact *= i; }
Copyright @ 2024 专注的长尾狸猫 Powered by .NET 8.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster