#include<stdio.h>
void swap(char str1[],char str2[]);
void main()
{
char str1[10],str2[10];
printf("iuput str1\n");
scanf("%s",str1);
swap(str1,str2);
}
void swap(char str1[],char str2[])
{
int i=0,j;
j=strlen(str1);
printf("%d",j);
for(i=0;str1[i]!='\0';i++)
{
str2[i]=str1[j];
j--;
}
str2[i]='\0';
printf("%s",str2);
}