#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char st[100];
int i, l;
clrscr();
printf("Enter any line of text : ");
gets(st);
l=strlen(st);
printf("Reverse of the String = ");
for(i=l-1;i>=0;i--)
printf("%c",st[i]);
getch();
}
///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........