C program to show input and output of a string Post author:Educate Post published:August 2, 2023 Post category:C and C++ Post comments:0 Comments #include #include void main() { char a[50]; clrscr(); printf(“enter any string: ”); gets(a); puts(a); getch(); } Output: enter any string: hi everyone hi everyone You Might Also Like C program to find the largest element in a given doubly linked list August 31, 2023 C program to print Floyd’s triangle August 29, 2023 Implement 0/1 Knapsack problem using Dynamic Programming August 7, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.