title: Using scanf to read an integer or a string
body: <p>How can I use scanf to read either an int or a string?</p>
  
  <p>What I'm trying to do is:</p>
  
  <pre><code>printf("Enter Your Guess, 0 - 100: "); /* Input your guess */
  
  scanf("%as", &amp;pass);
  
  printf("%s", pass);
  </code></pre>
  
  <p>In this program the player can either chose to enter a number or pass how can I scan either the number or the word pass. Is there and if statement I can put in or something I've been going into this for like 1 hour </p>