Cod sursa(job #2159167)
| Utilizator | Data | 10 martie 2018 19:44:47 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f("fact.in");
ofstream g("fact.out");
int p,k,contor;
int main()
{
f>>p;
while(contor!=p)
{contor++;
k=k+5;}
g<<k;
return 0;
}
