Cod sursa(job #17213)
| Utilizator | Data | 15 februarie 2007 08:56:55 | |
|---|---|---|---|
| Problema | Factorial | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.21 kb |
#include<iostream.h>
#include<fstream.h>
int p,n,c,k;
int main()
{ifstream f("fact.in");
f>>p;
while(n!=k)
{n=n*(n-1);
while(c%k)
n=n*n+n/k%10;
if(c)
k=k/10;}
ofstream g("fact.out");
}
