#include <string.h>
#include <conio.h>
int main()
{
char str[100], ch, str2[100];
int count = 1, i, count2 = 0;
printf("Enter String: ");
while(ch != 13)
{
ch = getche();
str[count] = ch;
count++;
}
for(i=0; i<=99; i++)
{
str2[i] = str[i];
}
for(i=count; i>=0; i--)
{
str[count2] = str2[i];
count2++;
}
printf("\nRevered string is\n");
for(i = 0; i < count; i++)
{
printf("%c", str[i]);
}
getch();
}