下面的程序是用do_while语句计算10的阶乘。请在程序的每条横线处填写一个语句,
问题:
下面的程序是用do_while语句计算10的阶乘。请在程序的每条横线处填写一个语句,使程序的功能完整。
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
public class DoWhileLoop
public static void main(______)
int n=10;
long result=1
do
______
______
System. out. println("10的阶乘为:"+result);