Cod sursa(job #1516547)

Utilizator dragos231456Neghina Dragos dragos231456 Data 3 noiembrie 2015 09:49:42
Problema Factorial Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.25 kb
#include <iostream>
#include <fstream>
using namespace std;

int main()
{
    int p,n,t;
    ifstream f("fact.in");
    ofstream g("fact.out");
    f>>p;
    n=5;
    t=0;
    if(p!=0)
    {
        n=5*p;
    }
    else n=1;
    g<<n;
}