#include
#include
int main()
{
char str[20],c;
int i,n;
printf("str=");
gets(str);
n=strlen(str);
for(i=0;i
c=str[i];
str[i]=str[n-i-1];
str[n-i-1]=c;
}
puts(str);
return 0;
}
#include
void mian(){
char c='d';
while(c>='a'){
printf("%c\n",c);
c--;
}
}
#include
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
char i=0,j,a[200],b[200];
scanf("%s",&a);
while(a[i] != '\0')
{b[i] = a[i]; i++;}
for (j = 0; j < i; j++) a[j] = b[i - 1 - j];
b[j] = a[i];
printf("%s\n",a);
return 0;
}