Cod sursa(job #705938)
Utilizator | Data | 5 martie 2012 10:57:02 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
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==0)
g<<1;
else
g<<p*5;
}