leetcode 172 Factorial Trailing Zeroes
https://www.cnblogs.com/grandyang/p/4219878.html
class Solution { public: int trailingZeroes(int n) { int num=0; while(n) { if(n/5) num+=n/5; n=n/5; } return num; } };
https://www.cnblogs.com/grandyang/p/4219878.html
class Solution { public: int trailingZeroes(int n) { int num=0; while(n) { if(n/5) num+=n/5; n=n/5; } return num; } };