UVA 623 - 500! UVA • Sep 1, 2020 Problem PDFSolution:package mypkg; import java.math.BigInteger; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner in=new Scanner (System.in); while(in.hasNext()) { int a=in.nextInt(); BigInteger b=BigInteger.ONE; for(long i=1;i<=a;i++) { b=b.multiply(BigInteger.valueOf(i)); } System.out.println(a+"!"); System.out.println(b); } } } https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/623/Main.java Tags UVA Competitive Programming Shipu Ahamed Recommended for you UVA UVA 913 - Joana and the Odd Numbers 4 years ago • 1 min read UVA UVA 871 - Counting Cells in a Blob 4 years ago • 3 min read UVA UVA 866 - Intersecting Line Segments 4 years ago • 3 min read