title: Why konsole dont wait for second "reading"/scanf?
body: <p>I have problem that when I run my program it does just take for the array everything that is on first input instead of second one and I just cant figure out why. To specify if i write in console 1 letter it does first part ok, but then print this weird ╠╠╠╠╠╠╠╠╠ (lot of it) and second task then just take this like input. This task is supposed to take string (even with spaces) and count bid/small letters, numbers and other. Can somebody pls tell me what I did wrong? Thanks for help and stay safe</p>
  <pre><code>#include&lt;stdio.h&gt;
  
  #include &lt;string.h&gt; 
  
  int main()
  {
  
      char z;
      int B = 0, s = 0, n = 0, else = 0;          
      printf(&quot;Enter character:&quot;);
      scanf_s(&quot;%c&quot;, &amp;z, 1);
      if (z &gt;= 'A' &amp;&amp; z &lt;= 'Z')
          printf(&quot;Big letter\n&quot;);
      else if (z &gt;= 'a' &amp;&amp; z &lt;= 'z')
          printf(&quot;small letter\n&quot;);
      else if (z &gt;= '0' &amp;&amp; z &lt;= '9')
          printf(&quot;number\n&quot;);
      else
      {
          printf(&quot;else\n&quot;);
      }
      
  
      char something[50];
      printf(&quot;Enter string:&quot;);
      scanf_s(&quot;%50[^\n]&quot;, str, 50);
      printf(&quot;Your name is %s&quot;, something);
      int space = 0;
      int len = 0;
      for (int i = 0; something[i] != '\0'; i++)
      {
          if (something[i] == ' ')
          {
              space++;
          }
          else
          {
              len++;
          }
      }
      for (int i = 0; i &lt;= len; i++)
      {
          if (something[i] &gt;= 'A' &amp;&amp; something[i] &lt;= 'Z')
          {
              B++;
          }
          else if (something[i] &gt;= 'a' &amp;&amp; something[i] &lt;= 'z')
          {
              s++;
          }
          else if (something[i] &gt;= '0' &amp;&amp; something[i] &lt;= '9')
          {
              n++;
          }
          else
          {
              other++;
          }
  
  
      }
      printf(&quot;Your input %s contains:\nB=%d s=%d n=%d else=%d\n&quot;, something, B, s, n, other);
      
  
          
          return 0;
      }
  </code></pre>