SelinD

127

May 16th, 2019
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int n,i,nrz=0,aux;
  6. cin>>n;
  7. for(i=5;i<=n;i=i+5)
  8. {
  9. aux=i;
  10. while(aux%5==0)
  11. {
  12. aux=aux/5;
  13. nrz++;
  14. }
  15. }
  16. cout<<nrz<<" ";
  17. }
Add Comment
Please, Sign In to add comment