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