#include<stdio.h>
#include<string.h>
void reverse(char str[100],int n);
void main(){
char str[100];
int n;
printf("Enter a string : ");
gets(str);
reverse(str,n);
printf("%s",str);
}
void reverse(char str[100],int n){
n = strlen(str);
for(int i=0;i<n/2;i++){
char straight = str[i];
char reverse = str[n-i-1];
str[i] = reverse;
str[n-i-1] = straight;
}
}