@@ -0,0 +1,581 @@
+package factorial;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0A%0Apublic class Main %7B%0A%0A%09public static void main(String%5B%5D args) throws IOException %7B%0A%09%09BufferedReader bufferedReader = new BufferedReader(%0A%09%09%09%09new InputStreamReader(System.in));%0A%09%09int size = Integer.parseInt(bufferedReader.readLine());%0A%09%09for (int i = 0; i %3C size; i++) %7B%0A%09%09%09int nr = Integer.parseInt(bufferedReader.readLine());%0A%09%09%09int zeros = 0;%0A%09%09%09int myNo = 5;%0A%09%09%09while (myNo %3C= nr) %7B%0A%09%09%09%09zeros += nr / myNo;%0A%09%09%09%09myNo *= 5;%0A%09%09%09%7D%0A%09%09%09System.out.println(zeros);%0A%09%09%7D%0A%09%7D%0A%7D%0A

easy - factorial - success