Cod sursa(job #2627327)
Utilizator | Data | 10 iunie 2020 14:17:55 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <Fstream>
using namespace std;
ifstream fin("fact.in");
ofstream fout("fact.out");
int main()
{
fin>>n;
long long n,p=1;
for(int i=1; i<=n; i++)
p=p*i;
fout<<p;
fin.close();
fout.close();
return 0;
}