title: Need to repromt the user in case he input digits and not letters
body: <p>I am trying to  make a program that will  ask a user to enter his name.  If he gives number instead I want the program to repromt user  until  he inputs characters as name.</p>
  
  <p>it should look something like this :</p>
  
  <pre><code>char name[50];
  printf("What is your name? ");
  scanf("%s", name);
  printf("Hello there, %s\n", name);
  </code></pre>
  
  <p>In the above  all is good BUT it does not recognize when you input number digits. I want to repromt the user in the case he inputs numbers and accept only  letters</p>
  
  <p>I have made the following code but obviously is not working. I would really  appreciate your help. Just remember ..keep  it simple!</p>
  
  <pre><code>int main()
  {
    char name[50];
  
    int age, agenext, id, idnext = 0;
  
    //PROMT USER  TO INPUT NAME
  
    printf("\nPlease enter your name:\n");
    scanf("%s", &amp;name);
  
        while (isdigit(name))
  
        {
          printf("wrong input try again");
  
        }
  printf("Your name is %s ",name);
  return 0;
  </code></pre>