I am trying to create a program that reads a user input strings and prints only those are not ‘a-z’ or ‘A-Z’. The following program can print string of characters. But how do I write a C program that reads a user input strings and prints only those are not ‘a-z’ or ‘A-Z’? I appreciate any help that I can get.
#include <stdio.h>
int main()
{
char name[30];
printf("Enter name: ");
gets(name); // read string
printf("Name: ");
puts(name); // display string
return 0;
}