Cod sursa(job #1317470)

Utilizator AndreiMedarMedar Andrei AndreiMedar Data 14 ianuarie 2015 22:07:35
Problema Factorial Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.21 kb
#include <iostream>
#include <fstream>
using namespace std;


int main()
{
ifstream f("fact.in");
ofstream out("fact.out");
long p;
f>>p;
if(p==0)
    out<<"1";
else
    out<<5*p;
    return 0;
}