Cod sursa(job #1129697)

Utilizator Viorell008Iordache Viorel Viorell008 Data 28 februarie 2014 07:39:37
Problema Factorial Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 kb
#include<iostream>
#include<fstream>
using namespace std;
ifstream x("factorial.in");
ofstream y("factorial.out");
int main ()
{
    int p,n;
    x>>p;
    n=p*5;
    y<<n;
    x.close();
    y.close();
    return 0;
}