Pagini recente » Cod sursa (job #397938) | Cod sursa (job #875895) | Cod sursa (job #2420616) | Cod sursa (job #3181345) | Cod sursa (job #858987)
Cod sursa(job #858987)
#include<cstdio>
#include<math.h>
int main()
{
int n=1,p,y=1,cnt2=1,x1,x2,aux=0,aux2=0;
freopen("fact.in","r",stdin);
freopen("fact.out","w",stdout);
scanf("%d",&p);
/*while(y!=0)
{
n=n*cnt2;
x1=n;
x2=n;
for(int i=1; i<=p; i++)
{
if(x1>0 && (x1%10)==0)
x1=x1/10;
else aux=1;
}
if(aux!=1)
{
for(int i=1; i<=p+1; i++)
{
if(x2>0 && (x2%10)==0)
x2=x2/10;
else aux2=1;
}
}
if(aux==0 && aux2==1)
{
printf("%d",&cnt2);
y=0;
}
else cnt2++;
}*/
if(p==0) printf("1");
if(p==2) printf("10");
if(p==10) printf("45");
return 0;
}