Cod sursa(job #591445)

Utilizator rudarelLup Ionut rudarel Data 24 mai 2011 10:50:01
Problema Factorial Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.31 kb
using namespace std;
#include <fstream>

int main()
{
        unsigned long int p = 0, n = 0;
        ifstream fin("fact.in");
        ofstream fout("fact.out");
        fin >> p;
        n = p * 5 - 5;
        fout << n << "\n";
        fin.close();
        fout.close();
        return 0;
}