#include <stdio.h>
int main(void)
{
char str[32];
printf("Enter a string: ");
fgets(str, 31, stdin);
printf("The string entered is: %s", str);
return 0;
}
/*
run
Enter a string: c programming os and games
The string entered is: c programming os and games
*/