Cod sursa(job #1129744)
| Utilizator | Data | 28 februarie 2014 08:48:45 | |
|---|---|---|---|
| Problema | Factorial | Scor | 10 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.25 kb |
#include<iostream>
#include<fstream>
using namespace std;
ifstream x("fact.in");
ofstream y("fact.out");
int main ()
{
int p,n;
x>>p;
n=p*5;
if(p==0)
n=1;
y<<n;
x.close();
y.close();
return 0;
}
