int i=0; int jiecheng=1; do { i++; jiecheng=jiecheng*i; } while (i<5); System.out.println("5的阶乘为"+jiecheng);