The code of life For 1 + 2! + 3! +… + 20! And of the December 8, 2023 by 蘇佳玲 No Comments public class number { public static void main(String [] ages){ long i=0; long f=1; for (int a=1; a<21; a++){ f=f*a; i+=f; } System.out.println(f); }Copy the code }