
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0,j;
char c[50],ch;
clrscr();
printf("\n Enter the line: ");
while(ch!='\n')
{
ch=getchar();
c[i]=ch;
i++;
}
printf("\n Entered line is :");
for(j=i-1;j>=0;j--)
{
putchar(c[j]);
}
getch();
}
Where Your Need Ends
About The Author
He has interest in programming in C, C++ and Java. He has been programming since 2007. He is the Founder of "Era of Skills".
You can follow him on Facebook