Cod sursa(job #2561438)
Utilizator | Data | 28 februarie 2020 19:50:51 | |
---|---|---|---|
Problema | Factorial | Scor | 5 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <stdio.h>
#include <fstream>
using namespace std;
ifstream f("fact.in");
ofstream g("fact.out");
int main()
{
int p,n=0;
f>>p;
while(p){
n=n+5;
p--;
}
g<<n;
return 0;
}