I tried to do some stuff with scanset in scanf but stuck somewhere.
when I write
char s1[250]; scanf(\"%[A-Z]\",s1); input : AHJHkiuy Output: AHJH
You could expand your example a little bit and achieve your goal.
scanf("%[A-Za-z ]", s1);
Another way to do this would be:
scanf("%[^0-9]", s1); /* Scans everything until a digit */