Cod sursa(job #705937)
| Utilizator | Data | 5 martie 2012 10:56:09 | |
|---|---|---|---|
| Problema | Factorial | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.23 kb |
#include<iostream>
#include<fstream>
using namespace std;
int main(void)
{
fstream f,g;
f.open("fact.in",ios::in);
g.open("fact.out",ios::out);
int n,i;
long long p=1;
f>>p;
if(p==1)
g<<0;
else
g<<p*5;
}
