Cod sursa(job #3311585)
| Utilizator | Data | 23 septembrie 2025 12:55:07 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <iostream>
#include <fstream>
using namespace std;
int p,n=0,h=0;
int main()
{
ifstream f("fact.in");
ofstream g("fact.out");
f>>p;
while(h<p)
{
n+=5;
h++;
}
g<<n;
}
