Cod sursa(job #2159165)
Utilizator | Data | 10 martie 2018 19:43:40 | |
---|---|---|---|
Problema | Factorial | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 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;
}