#include<stdio.h>
#include<string.h>
int main()
{int n ;
int Duplicate(char scr[],char dest[],int n);
char scr[80],dest[80];
printf("Input a string:");
gets(scr);
printf("Input a integer:");
scanf("%d",&n);
Duplicate(scr,dest,n);
if(Duplicate(scr,dest,n)!=0)
printf("Output is:%s,%d characters.",dest,Duplicate(scr,dest,n));
return 0;
}
int Duplicate(char scr[],char dest[],int n)
{int i,j;
for(i=0,j=n-1;*(scr+j)!='