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