# include & ltstdio.h & gt
# include & ltstring.h & gt
# include & ltstdlib.h & gt
# Definition N (100000)
Internal Flip (Character * Channel)
{
int I = 0;
int temp = 0;
int len = strlen(ch);
for(I = 0; I< len/2; i++)
{
temp = ch[I];
ch[I]= ch[len-I- 1];
ch[len-I- 1]= temp;
}
Returns1;
}
Int product (char*a, char*b, char*c)
{
int i=0,j=0,m = 1;
int lena = strlen(a),lenb =strlen(b),temp
Overthrow (1);
Overthrow (b);
for(I = 0; I< Lena; i++)
{
for(j = 0; j & ltlenbj++)
{
int sum = c[I+j]+(a[I]--0 ')*(b[j]--0 ');
m = 1;
c[I+j]= sum % 10;
c[I+j+m]+= sum/ 10;
while(c[i+j+m]>9)
{
c[I+j+m+ 1]+= c[I+j+m]/ 10;
c[I+j+m]% = 10;
m++;
}
}
}
for(temp = N- 1; temp & gt=0; Temperature-)
{
if(c[temp]! = 0)
Break;
}
for(I = 0; I<= tempi++)
{
c[I]+= ' 0 ';
}
Overthrow (c);
Returns1;
}
int factural(int n,char *c)
{
int I = 0;
char a[N];
char b[N];
memset(c,0,sizeof(char)* N);
c[0]= ' 1 ';
If (n<= 1)
{
Returns1;
}
memset(a,0,sizeof(char)* N);
memset(b,0,sizeof(char)* N);
for(I = 2; I < = n; i++)
{
_itoa( i,a, 10);
memcpy(b,c,strlen(c));
memset(c,0,sizeof(char)* N);
Products (a, b, c);
}
Returns1;
}
void main()
{
int x=99,y=99,I = N;
char c[N];
memset(c,0,sizeof(char)* N);
while( 1)
{
int n = 0;
scanf("%d ",& ampn);
factural(n,c);
printf("%3d! = %s\n ",n,c);
printf("%d\n ",strlen(c));
}
}
//-Legacy issues-
//The last ten digits are the original position of the ex-wife's children, 10 digits are the original position of the ex-wife's children, and the last digit is the adjusted position of the ex-wife's children.
//
# include & ltstdio.h & gt
# include & ltmalloc.h & gt
# Define N 20
void main()
{
int student[N];
int I = 0;
int j = 0;
int count = 0;
for(I = 0; I & ltn;; i++)
{
Student [I] = I+1; //initialization
}
I = 0;
While (I<n)
{
if(student[j]& gt; = 0)
count++;
If (count == 85)
{
printf("%d ",student[j]);
Student [j] =-1;
count = 0;
i++;
}
j = ++ j % N;
}
Printf(" \ n winer is %d.\n ",j);
}