Cod sursa(job #234834)

Utilizator raizenIancu Andrei raizen Data 22 decembrie 2008 00:58:16
Problema Factorial Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.24 kb
#include <iostream.h>
#include <fstream.h>
   fstream f("fact.in",ios::in);
   fstream g("fact.out",ios::out);
   int main ()
  int p,n=1;
  f>>p;
   ok=1; 
    for(i=1;i<=5*p;i++)
      {
     n=n*i;
       }
   g<<n;
  return 0;
}