填空题 完成求n!的程序
   public class Test{
           public static void main(String args[])  {
                factorial(3);
                factorial(6);
                factorial(9);
          }
          static  ( 1)  factorial(int n)     {
                long m=1;
                for  (int x=1;x<=n;   ( 2)  )
                   ( 3)            ;
                System.out.println (n+" ! ="+m) ;
         }
   }
  • 1、
  • 2、
  • 3、
【正确答案】 1、void,    2、x++,    3、m*=x    
【答案解析】