Code Snippets C

#include
int main(void)
{
char str[100];
printf("Enter letters, anything else to stop\n");
scanf("%[a-zA-Z]", str);
printf(str);
return 0;
}