message: Code is more readable now
diff: @@ -23,22 +23,6 @@ Expected Auxiliary Space: O(1)
  #include <bits/stdc++.h>
  using namespace std;
  -class Solution
  -{
  -public:
  - int trailingZeroes(int N)
  - {
  - int result = 0;
  - for(long long i=5; N/i>0; i*=5){
  - result += (N/i);
  - }
  - return result;
  - //Logic ---->
  - //The zeros come from 10 and factors of 10 are 2 and 5 .
  - // Write Your Code here
  - }
  -};
  -
  int main()
  {
  int t;
  @@ -47,9 +31,13 @@ int main()
  {
  int N;
  cin >> N;
  - Solution ob;
  - int ans = ob.trailingZeroes(N);
  - cout << ans << endl;
  + int cnt = 0;
  + while(n)
  + {
  + n /= 5;
  + cnt += n;
  + }
  + cout << cnt << endl;
  }
  return 0;
  }
  