#include<stdio.h>
#include<string.h>
main()
{
    char s[100],t;
    int i,j,l;
    printf("Enter a string\n");
    gets(s);
    l=strlen(s);
    i=0;
    j=l-1;
    while(i<j)
    {
        t=s[i];
        s[i]=s[j];
        s[j]=t;
        i++;
        j--;
    }
    printf("The reversed string is:%s",s);
}

     
           
Note: Need to be arranged in compiler after copied
   

 OutPut:

Enter a string EVIL The reversed string is LIVE