Cod sursa(job #709982)
Utilizator | Data | 8 martie 2012 19:09:48 | |
---|---|---|---|
Problema | Factorial | Scor | 5 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include<iostream>
#include<fstream>
using namespace std;
long t,s,i;
int main ()
{
ifstream f("fact.in");
ofstream g("fact.out");
f>>t;
f.close();
if(t>1)
s=5*t;
else s=1;
g<<s;
g.close();
cout<<s;
}