C program to show input and output of a string

				
					#include<stdio.h> 
#include<conio.h> 
void main() 
{ 
char a[50]; 
clrscr(); 
printf(“enter any string: ”); 
gets(a); 
puts(a); 
getch(); 
}
				
			
Output: 
enter any string: hi everyone
hi everyone

Leave a Reply