title: Jupyter Notebook C user input
body: <p>I am trying to some simple C code in a Jupyter notebook that accepts user input. An example of this is: </p>
  
  <pre><code>// Problem 7.4
  // Write a program that calculates the average of an array of 10 floating-point values.
  
      #include &lt;stdio.h&gt;
  
      int main (void)
      {
          float values[10] = {0};
  
          for ( int i = 0; i &lt;= 10; i++ )
          {
              printf("Enter the %ith number: ", i);
              scanf("%f", &amp;values[i]);
              printf("\n");
          }
      }
  </code></pre>
  
  <p>and the output is simply:</p>
  
  <pre><code>Enter the 0th number: 
  Enter the 1th number: 
  Enter the 2th number: 
  Enter the 3th number: 
  Enter the 4th number: 
  Enter the 5th number: 
  Enter the 6th number: 
  Enter the 7th number: 
  Enter the 8th number: 
  Enter the 9th number: 
  Enter the 10th number: 
  </code></pre>
  
  <p>without ever giving a chance for user input. Is there a way to do this the Jupyter C kernel? </p>