Cod sursa(job #2684000)

Utilizator AndreiStreheStreche Andrei Claudiu AndreiStrehe Data 12 decembrie 2020 13:11:44
Problema Factorial Scor 10
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.25 kb
#include <fstream>

using namespace std;

ifstream f("fact.in");
ofstream g("fact.out");

int p,nrzero,nr;

int main()
{
    f>>p;

    if(p==0)
    {
        g<<1;
    }
    else
    {
        g<<p*5;
    }



    return 0;
}