Write a C program that will enter a line of text,store it in an array and then display it backwards. The line should end with '\n'.
# include<stdio.h> void main() { char str[100]; int i=0; clrscr(); while((str[i]=getchar())!='\n') i++; str[i]='\0'; printf("Reverse String : "); for(i=i-1;i>=0;i--) printf("%c",str[i]); getch(); }