Mega Code Archive
Categories
/
C
/
Console
Narrow the input
#include
int main(void) { char str[80]; printf("Enter letters and spaces\n"); scanf("%[a-zA-Z ]", str); printf(str); return 0; }