Write a C Program for input and output of strings using gets() and puts()
#include<stdio.h>
int main(void)
{
char str[10];
printf("Enter a string : ");
gets(str);
printf("String is : ");
puts(str);
return 0;
}
Output
Enter a string : Hello
String is : Hello