Cod sursa(job #1262032)
Utilizator | Data | 12 noiembrie 2014 22:13:47 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f("fact.in");
ofstream g("fact.out");
int long long P, x=0;
int k=0;
int main()
{
f >> P;
while (k<P)
{x+=5;
k++;}
g << x-5;
return 0;
}