title: Second scanf for character doesn't work
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;ctype.h&gt;
  
  void trinanguloNumeros(){
      char caracter = 'y';
      int iTamano;
  
      while (caracter == 'Y' || caracter == 'y') {
          printf("Realizar triangulo:\n");
          printf("De que tamaño desea su triangulo? [1-20]");
          scanf("%i", &amp;iTamano);
  
          int i,j;
          for(i=1; i&lt;= iTamano; i++ ){
              for(j=1; j &lt;= i; j++){
                  printf("%i", j);
              }
              printf("\n");
          }
  
          printf("Desea Intentar nuevamente? [y/n]\n");
          scanf("%c", &amp;caracter);
          printf("%c", caracter);
  
      }
      printf("Termina!!");
  }
  
  int main(void){
      trinanguloNumeros();
      return 0;
  }
  </code></pre>
  
  <p>The second <code>scanf</code> for the var <code>caracter</code> doesn't works and breaks the  <code>while</code> loop. I have no idea why this breaks the loop and the variable is not set again.</p>