Cod sursa(job #1129699)
Utilizator | Data | 28 februarie 2014 07:41:06 | |
---|---|---|---|
Problema | Factorial | Scor | 5 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 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;
y<<n;
x.close();
y.close();
return 0;
}