You are on page 1of 1

#include <stdio.

h>
#include <string.h>

int main()
{
char s[20];

printf("Enter a string: ");


fgets(s, 20, stdin);

printf("The entered string is %s\n", s);

return 0;
}

You might also like