Tuesday, April 04, 2017

কম্পিউটার প্রোগ্রামিং বই সমস্যা - ৬৫ |

ফ্যাক্টরিয়াল 100



soliution::


#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
    long long int a,b,c=0,d,e;
    cin>>e;
    while(e--)
    {
        c=0;

    cin>>a;
    for(d=1;d<=a;d++)
        {
            b=d;
        if(b%5==0)
        {
            while(b%5==0)
            {
                c++;
                b=b/5;
            }
        }
    }
    cout<<c<<endl;
    }
    return 0;
}

5 comments:

  1. Can u pls write that in c with description(using comment);

    ReplyDelete
    Replies
    1. Thanks.
      dear 'Anonymous',
      We will send you a solution of this problem in c with description soon.
      Stay with us;
      Happy_Coding;

      Delete
  2. Dear Anonymous This is for U// link::http://paste.ubuntu.com/24318965/

    ReplyDelete
  3. tomader blogta besh valo.sundor hoyeche.GoOd job......
    HAapPy CodIng...!!!

    ReplyDelete
  4. Can anyone help to solve it
    http://cpbook.subeen.com/2012/11/age-calculation.html?m=1

    ReplyDelete