Cod sursa(job #2392181)

Utilizator hax_m8Nicolae Antonio Cristian hax_m8 Data 29 martie 2019 19:15:15
Problema Factorial Scor 0
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.27 kb
#include <fstream>

using namespace std;

ifstream fin("fact.in");
ofstream fout("fact.out");

int main()
{
    int n, cnt = 0;
    fin >> n;
    for(int i = 1; i <= n; i++)
    {
        if(i % 5 == 0)
            cnt++;
    }
    fout << cnt;
    return 0;
}