#include<iostream.h>
#include<stdio.h>
int main()
{
char str[80];
int i,j;
cout<<"\nEnter any string (max.0):";
gets(str);
for(i=0;str[i]!='\0\;++i)                         //To find the length of the string
char rev[80];
int k;
for(j=i-1, k=0;j>=0;--j,++k)
rev[k]='\0';
cout<<"\nString in reverse order is:";
puts(rev);
return 0;
}