import java.util.Scanner;
class HomeWork13
{
public static void main(String[] args)
{
System.out.println("请输入数字:");
Scanner sc = new Scanner(System.in);
int i = sc.nextInt();
int h =1;
System.out.print(i+"的阶乘"+i+"!"+" ");
for (int j=1;j<=i;j++)
{
h *= j;
class JieChen2
{
public static void main(String[] args)
{
for ( int i = 1; i<=10 ; i++ )
{
String str = ""; //定义一个字符串,收集字符串形式的阶乘表达式
int num = 1; //定义一个累乘器,收集阶乘数值
int k = i;