Cod sursa(job #53321)
Utilizator | Data | 21 aprilie 2007 19:45:39 | |
---|---|---|---|
Problema | Factorial | Scor | 5 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.18 kb |
#include<fstream.h>
int main(void)
{
int n,x;
ifstream in("fact.in");
in>>n;
in.close();
x=n*5;
if(n==0) x=0;
ofstream out("fact.out");
out<<x<<'\n';
out.close();
return 0;
}