The code below is written in C. What the code does is to show a name or any word that is typed by a user. But when I compiled and run the code, typing both a number or a name, it displayed "What you have typed is neither a name nor a number." Let me know what is wrong with the code.
#include <stdio.h>
typedef char String[1014];
int main(void)
{
String yourName;
printf("Type your name\n");
scanf("%s", yourName);
if ((yourName >= "a" && yourName <= "z") || (yourName >= "A" && yourName <= "Z"))
printf("Hello Mr.%s\n", yourName);
else if ((yourName >= "0" && yourName <= "9"))
printf("Type your name, not a number!");
else
printf("What you have typed is nither a name nor a number.\n");
return 0;
}