Cod sursa(job #1699209)

Utilizator gabime11Gabriel gabime11 Data 6 mai 2016 17:35:07
Problema Factorial Scor 5
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.24 kb
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
    int P,t=1;
    ifstream fin("fact.in");
    ofstream fout("fact.out");
    fin>>P;
    fout<<(P-P/5)*5;
    fin.close();
    fout.close();
    return 0;
}