#include<stdio.h>
int main(){
int i=0;
char b;
char a[100]="";
char b1[100]="";
int x;
do{
b=getchar();
a[i]=b;
i++;
}while(b!=’\n’);
x=i-1;
for(int j=0;j<=i;j++){
b1[j]=a[x];
x--;
}
printf("%s",b1);
return 0;
}
#include<stdio.h>
int main(){
int i=0;
char b;
char a[100]="";
char b1[100]="";
int x;
do{
b=getchar();
a[i]=b;
i++;
}while(b!=’\n’);
x=i-1;
for(int j=0;j<=i;j++){
b1[j]=a[x];
x--;
}
printf("%s",b1);
return 0;
}